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, by default a collection is displayed as followed: Collection | Number of items item[0]| value0 item[1]| value1 Can someone show me how to change "Number of items" to my description by using EditorTemplate in xaml ? I'd like to have the information displayed as below for a collection ObservableDictionary<string,bool> Foo: Foo | My description item[0] | Checkbox1 item[1] | Checkbox2
Thanks in advance |
|
|
If you want to change the display on a per-property basis, just use a PropertyEditor (be sure to set AllowExpand="True"). If you want to change the display globally, take a look at the PropertyGrid.CollectionDisplayKey example in this post: http://www.mindscape.co.nz/forums/Post.aspx?ThreadID=1171&PostID=1610 (You can ignore the ElementEditorKey bits.) It's written in terms of changing the add button UI but you can use it equally well to change the "x item(s)" text -- see the last two TextBlocks within the DockPanel.
|
|