Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
XamDataTree conditional ContentPresenter not updating when bound data changes

Hello. I have a XamDataTree with a node layout that defines 3 types of content presenters, one with an Image and TextBlock, one with a text editor, and one with a date editor. 

For nodes that conditionally have the "TextBlockPresenter", when the "DisplayLabel" that the Text property is bound to changes, I am calling the underlying model object's PropertyChangedEvent but the text of the TextBlock is not updating in the tree to reflect the change. 

Is there something else I need to do to be able to change the model object and have the change reflected in the tree node?

  • 33370
    Verified Answer
    Offline posted

    Hello Chris,

    I have been investigating into your requirement in this case, and I have put together a sample project based on the code that you have provided. In doing so, I cannot seem to reproduce the behavior where the “TextBlock” template is not updating? Perhaps the implementation of the INotifyPropertyChanged interface is incorrect in the case of your sample?

    I am attaching the sample project I used to test this and demonstrate it working correctly.

    Please let me know if you have any other questions or concerns on this matter.

Reply Children
No Data