How can i bind the IsEnabled property of the checkbox in a XamDataTree to a property for each node?
Hello Travis,
Thank you for contacting Infragistics. I have been looking into your question and I understand that you would like to make only the CheckBox of a particular node disabled. In order to achieve the desired behavior I got the default style for the XamDataTreeNodeControl and bind the ‘IsEnabled’ property of the CheckBox to a property of my underlying data.
I am attaching a sample application(DataTreeNodeLayoutsBinding.zip) that shows my approach.
Let me know, if you need any further assistance on this matter.
Works perfect! I just couldn't figure out the binding, this was what I needed. I was trying to use IsEnabled="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Node.IsEnabled}" , I needed to add "Data" into the path, ie Path=Node.Data.IsEnabled.
Where in the XAML can I alter the check in the disabled checkbox, it is very hard for the user to tell it is disabled?