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?
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.
Thanks Andrew for the prompt response. I finally figured out what was going on and it was completely my error. I was inadvertently updating DisplayLabel on a copy of the data bound to the tree, not the actual data object itself. Sorry to trouble you!