From 1b407ea505546fdbf6f1d527b83098a8bf14526c 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/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs b/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs index fa2c828b..8b0c90b7 100644 --- a/Main/Source/ExtendedWPFToolkitSolution/Src/WPFToolkit.Extended/PropertyGrid/Implementation/PropertyGrid.cs +++ b/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 propertyItems) { PropertyItemCollection propertyCollection = new PropertyItemCollection(propertyItems); - propertyCollection.SortBy("Name", ListSortDirection.Ascending); + propertyCollection.SortBy("DisplayName", ListSortDirection.Ascending); return propertyCollection; }