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 We have a question regarding the Graph element. We have a custom foreground element class that is based on the Canvas class. In our custom class we have added a dependency property that is meant to be bound to an external property that implements INotifyPropertyChanged. So the scenario is basically that we have an external property that we want to affect the content of the foreground element and vice versa. The problem is that the binding doesn't want to work both ways, and yes we have set the mode of the binding to TwoWay. If we change the property in our foreground element, the external property that we bind to is affected. But if we change the external property it doesn't get propegated in to the foreground class. If we add, for example, a textbox in our foreground element class and bind its Text-property to the external property we can hook up to the TextChanged-event of that Textbox and get notified of any external changes that way. But this is not an optimal solution in our case. Do you have an idea what might be the problem here? Are we doing something wrong or might there be a bug in the Graph element? Best regards |
|
|
Hello I've managed to get it to work using your setup description. My only guess is that property changed notifications is not working on the external property - possibly the property name in the PropertyChangedEventArgs is misspelt? If you could send a simple repro project or some code samples I'd be happy to investigate. Jason Fauchelle |
|