Browse Source

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

import/raw
brianlagunas_cp 15 years ago
parent
commit
1b407ea505
  1. 4
      Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs

4
Main/Source/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