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
That is what I figured. Thanks for the suggestion of the list.
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.
Hello,
I believe that you would be able to use the following method of the Appearance object :
Appearance.ResetStyleResourceName(),
Please let me know if you have any other questions.