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
|
I am trying to add some custom nodes in ProperyGrid as following: Node node1=propertyGrid1.AddNode("Witdth",100); Node node2=propertyGrid1.AddNode("Height",50); Then how can I group node1 and nodes2 in a customized category like "Model Size"? Can you help me? |
|
|
When creating the PropertyGroupDescription, pass it a custom IValueConverter that knows what category each node should go into. (For example, it might have a dictionary that maps nodes or node names to categories.) There's some discussion of custom grouping at http://www.mindscape.co.nz/forums/Thread.aspx?ThreadID=1161 (scroll down to the last message in the thread) and an article at http://www.mindscape.co.nz/blog/index.php/2008/01/27/sorting-and-grouping-in-the-wpf-property-grid/ (written in terms of an ItemsSource or SelectedObject, but equally applicable to the AddNode scenario). Let me know if you need any more information! |
|