This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
Hi, lets say i have a property of type ObservableDictionary<int, Person> in the property grid. It will be showed as followed: DisplayedName | Number of Items (for instance: People | 8 items). How can i change " Number of Items " to "Id : Person" ? People | Id : Person is that i want. Thanks in advance, mam
|
|
|
You should be able to do this by declaring a PropertyEditor for the dictionary property, with an EditorTemplate containing the info you want to show. |
|
|
Is there an easy way to do this ? Since i only want to change the text displayed for the dictionary itself on the right of the grid. All rows for its items should remain unchanged. By default a dictionary ObservableDictionary<int, bool> Data will be displayed in the property grid like: - Data | 2 items 1 | Checkbox1 2 | Checkbox2 I just want to change "2 items" to the info i want. Thank you! |
|
|
Declare a PropertyEditor for the dictionary property e.g. <ms:PropertyEditor PropertyName="Data" EditorTemplate="{StaticResource MyTemplate}" /> |
|