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
380
NodeAppearance Reset
posted

I have a tree with 4 levels of information.  To emphasize the hierarchial nature of this data when a user selects any leaf all of the parent nodes get a highlight by using the Node.Override.NodeAppearance.StyleResourceName property.

This part is working as expected.  What I am having trouble with is reseting those appearances when the "next" leaf is selected.  I have tried all sorts of Resets and settings StyleResources to string.empty.  Is there any global way to axe all overrides from the tree without going node-to-node and doing them one at a time?

Thanks

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I don't think there's any way to reset all of the Appearance in the whole tree. You have to do it on each node, just as you need to set the appearance on each node.

    What I would do is keep a List<UltraTreeNode> of all the nodes I applied the appearace to. Then you can just loop through the list and reset each node and then clear the list.

Children