diff --git a/ILSpy/Controls/GridViewColumnAutoSize.cs b/ILSpy/Controls/GridViewColumnAutoSize.cs index 92c10ce1f..8b010ebce 100644 --- a/ILSpy/Controls/GridViewColumnAutoSize.cs +++ b/ILSpy/Controls/GridViewColumnAutoSize.cs @@ -70,7 +70,8 @@ namespace ICSharpCode.ILSpy.Controls { string[] sizes = (sizeValue ?? "").Split(';'); - Debug.Assert(sizes.Length == view.Columns.Count); + if (sizes.Length != view.Columns.Count) + return; Dictionary> percentages = new Dictionary>(); double remainingWidth = fullWidth - 30; // 30 is a good offset for the scrollbar diff --git a/ILSpy/Controls/ResourceObjectTable.xaml b/ILSpy/Controls/ResourceObjectTable.xaml index 7e8d5977a..f994c2aaa 100644 --- a/ILSpy/Controls/ResourceObjectTable.xaml +++ b/ILSpy/Controls/ResourceObjectTable.xaml @@ -2,6 +2,7 @@ + ItemContainerStyle="{StaticResource alternatingWithBinding}" + local:SortableGridViewColumn.SortMode="Automatic"> - + - - + + - - + + - + diff --git a/ILSpy/Controls/ResourceStringTable.xaml b/ILSpy/Controls/ResourceStringTable.xaml index 49553b588..a3da6d4d0 100644 --- a/ILSpy/Controls/ResourceStringTable.xaml +++ b/ILSpy/Controls/ResourceStringTable.xaml @@ -2,6 +2,7 @@ + Grid.Row="1" + AlternationCount="2" + ItemContainerStyle="{StaticResource alternatingWithBinding}" + local:SortableGridViewColumn.SortMode="Automatic"> - + - - + + - +