Why in the hell is the sorting so stupid ? If you want the order of the properties as they were declared in the class, you have to add and count manually a PropertySortAttribute. That means if your model resides somewhere else, you must deliver the extented wpf toolkit assembly just to NOT sort the properties. WTF ?
This is how it should be:
Declare a third sort order named "unsorted". Let it be the default. If there are no categories defined, sort the properties as they were declared (unsorted). If a category is defined, sort the properties unsorted under this category. When you select alphabetically they are sorted alphabetically. If a PropertyCustomSortAttribute exists, you can sort to that. Easy as that.
Really, i am a software developer since 12 years and there is absolutely nothing special here. If i recall correctly, some guys that develop on the E-WPF-TK are from MS. That depresses me. Its really easy to make the sorting of a property grid userfriendly and working as expected.
↧