Browse Source

PropertyGrid: fixed the alphabetical sorting. Got to watch those "magic strings" when renaming.

pull/1645/head
brianlagunas_cp 15 years ago
parent
commit
00ca8aaa08
  1. 4
      ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs

4
ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs

@ -529,14 +529,14 @@ namespace Microsoft.Windows.Controls.PropertyGrid
PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems);
propertyCollection.GroupBy("Category");
propertyCollection.SortBy("Category", ListSortDirection.Ascending);
propertyCollection.SortBy("Name", ListSortDirection.Ascending);
propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending);
return propertyCollection;
}
private static PropertyItemCollection GetAlphabetizedProperties(List<PropertyItem> propertyItems)
{
PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems);
propertyCollection.SortBy("Name", ListSortDirection.Ascending);
propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending);
return propertyCollection;
}

Loading…
Cancel
Save