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
5124
XamDataTree - setting icon visibility for a selected node
posted

A customer using the XamDataTree recently asked how to display an image in a node only when it is selected.  I'd like to share the sample (see below) which was used to demonstrate this functionality, in the hope that this is helpful for others using the XamDataTree.

  • 5124
    posted

    In the attached sample, the "Box" nodes on the second level of the heirarchy have their icon visible only when selected.  The core logic is contained in the custom method called "SetIconsVisibility" in the code behind, which includes some explanatory comments.

    XDT_IconVisibilityBinding_WPF.zip