Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: Property Grid's Property Order and Category Order [19844]

$
0
0
1. about the Property Order
I know the [PropertyOrder()] attribute is used to specify the property order in category sorting, but when I click alphabetical sorting, however, the [PropertyOrder()] attribute still has effect, then the result is not totally in alphabetical order, the property that has [PropertyOrder()] attribute will be out of the alphabetical order.How can I just specify the property order in Category Sorting?

2. about the Category Order
now the Category is using the alphabetical order, is there any attribute that specify the category order?
Comments: ** Comment from web user: emartin **

Fixed in the next version.
It is intended behavior that the PropertyOrder affect the display order of the properties in both Categorized and Alphabetical view.

In the next release, you will be able to specify in which context the PropertyOrderAttribute will apply. Here is a sample of what will be possible:


```
public class A
{
. . .
[PropertyOrder(3,UsageContextEnum.Alphabetical)]
[PropertyOrder(6,UsageContextEnum.Categorized)]
public int PropertyA{ get; set; }
. . .
[PropertyOrder(2,UsageContextEnum.Both)]
public int PropertyB{ get; set; }
. . .
}
```

For the categorization, it will be possible to order categories this way:

```
[CategoryOrder( "Information", 1 )]
[CategoryOrder( "Hobbies", 2 )]
[CategoryOrder( "Connections", 3 )]
public class B
{
. . .
}
```


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>