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'm attempting to subclass your abstract Node class (I want to attach several more properties). However, when executing the following line: SubClassedNode node = PropertyGrid.AddNode(CAPTION, VALUE) as SubClassedNode; I receive a null value back. Any advice?
Thanks, Chris Prindle
|
|
|
The property grid creates nodes internally as required. When you call AddNode, the grid instantiates a PropertyNode; since this isn't of your type, the as operator returns null. There isn't a way to tell the grid to instantiate a custom subtype of Node. Could you tell us a bit more about what you're trying to achieve and maybe we can suggest an alternative approach? For example you might be able to achieve what you want using ItemsSource instead of adding nodes procedurally. |
|