diff --git a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs index 7c0e2a83d98..12b9c29698e 100644 --- a/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs +++ b/src/NuGet.Clients/NuGet.PackageManagement.UI/Xamls/SolutionView.xaml.cs @@ -259,7 +259,10 @@ private void ListView_SizeChanged(object sender, SizeChangedEventArgs e) } var newWidth = _projectColumnHeader.ActualWidth + width; - _projectColumn.Width = newWidth; + if (newWidth > 0) + { + _projectColumn.SetValue(Canvas.WidthProperty, newWidth); + } // this width adjustment is only done once. _projectList.SizeChanged -= ListView_SizeChanged;