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
|
Hello, I'm using the Mindscape Property Grid in an app that allows the user to select a business object, and then once selected, edit the properties of that business object in the Mindscape Properties Grid. So far, so good. Now, occasionally, a business object contains a property that is simply a 'db key value', typically an integer. I know I could dynamically build a drop down list of values to select from using Value Converters and DataTemplates etc.... however, in this case, my UI already has a treeview open with the same db values and my user wants to 'right click' the business object in the treeview and 'paste' its id and name value into the properties grid. I've been struggling with this one as I don't quite know how to change a node in the properties grid in response to an external event, like an external treeview node being clicked on .... Ideally, the node in the properties grid would also have a 'paste' button that would become enabled once an appopriate business object was selected elsewhere in the UI ... Any ideas? |
|
|
Uh, right .... I once again fell into the old trap of thinking about how to manipulate a control, rather than working with the 'ViewModel' the control is bound to .... In my example, all I needed to do was update the underlying 'ViewModel' instance of the currently selected object for the Properties Grid ... Thanks. Regards, Douglas
|
|