Hello,
I am having difficulties binding to the data of the active node on the xamDataTree.
Last thing I was stuck with is (but what doesn't work):
<TextBlock Text="{Binding Path=Data.Name}" DataContext="{Binding Path=ActiveNode, ElementName=modelerTree}" Grid.Row="1" x:Name="textblock"/>
<XamDataTree x:Name="modelerTree">... </XamDataTree>
I tried binding to only the tree, to the ActiveNode (hoping propertychanged would notify binding to update) and to ActiveNode.Data and also binding without datacontext directly to Text={Binding Path=ActiveNode.Data.Name, ElementName=modelerTree}. But nothing seems to work.
With snoop I was able to verify that the active node and the contained data on the tree is always correct. But the property does not get updated in my binding.
The workaround right now is to catch the ActiveNodeChanged-Event in the code behind and set the datacontext to
e.NewActiveTreeNode.Data.
But it would be nice to do that in xaml..
Any help will be appreciated.
Peter.
Hello Peter,
Thank you for your post. I have logged this behavior with our developers in our tracking system, with an issue ID of 119305. I have also created a support ticket on your behalf with number CAS-98481-Q3G7S3 in order to link the development issue to it so that you are automatically updated when a Service Release containing your fix is available for download.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics, Inc.
www.infragistics.com/support
The development issue with ID of 119305 has been fixed and it is available in the latest Service Release. You can download the Service Release by logging in our web site and then going to Account\My Keys and Downloads page.
Thank you for using Infragistics Components.
Infragistics