I need to disable (or make it invisble) checkboxes in some nodes in my xamDataTree, preferrably using binding to the underlying data. I can disable all checkboxes using CheckBoxStype property of the xamDataTree, but can not find on how to do it for each individual node.
Thanks in advance,
Yuriy
To do this you would have to retemplate the XamDataTreeNodeControl.
The relevant area of the new style would look something like
<CheckBox x:Name="Checkbox"
IsEnabled="{Binding Node.Data.EnableCheckBoxField, RelativeSource={RelativeSource TemplatedParent}}"
I am not sure what do you mean by XamDataTreeNodeControl ( I am new to Silverlight).
I tied to add checkbox to the ItemTemplate and hide checkboxes provided by XamDataTree. Now I can control each individual checkbox, I had to implement code to check/uncheck children of the parent node.
I can use this solution, however I am seeing strange behavior - checkboxes are not refreshed in the screen unless I scroll updated nodes from the viewable area and then scroll them back.
Thanks