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
80
xamDataTree disable checkbox for individual node
posted

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

Parents
No Data
Reply
  • 21382
    Suggested Answer
    posted

    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}}"

Children