From 00ca8aaa084980a643f52359024df2dd0f2e2c4f Mon Sep 17 00:00:00 2001 From: brianlagunas_cp Date: Thu, 6 Oct 2011 14:21:02 +0000 Subject: [PATCH] PropertyGrid: fixed the alphabetical sorting. Got to watch those "magic strings" when renaming. --- .../PropertyGrid/Implementation/PropertyGrid.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs b/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs index fa2c828b..8b0c90b7 100644 --- a/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs +++ b/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 propertyItems) { PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems); - propertyCollection.SortBy("Name", ListSortDirection.Ascending); + propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending); return propertyCollection; }