wpf - Chaining dependency properties with MVVM -


I am looking for a way to expose a property in my ViewModel and with two different controls in my view Is impressed. / P>

In the code view, I am trying to do something like this:

  propdp object MyObject ... & lt; MySelector selectedItem = "{MyObject binding, mode = twitter}" /> & Lt; MyEditor DataContext = "{Binding MyObject, Mode = TwoWay}" />  

Its purpose is to allow the user to select an item and edit it on the same user control, but this is not working for me when a selection is made in MySelector, So the change fails to promote MyEditor

Is it possible?

If you want to complete, then the editor controls point indicating what the selector control is pointing to , Just adjust MyEditor to force it to:

  & lt; MyEditor DataContext = "{Binding Path = Selected Eatam, ElementName = mySelector}" / & gt;  

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -