Hi there,
I need to hide the root node but still display its descendents. Is that possible? I have not found a way to do it.
Please let me know what you think.
Thanks,
Danny
Just remove the root node from the list of nodes you are populating the tree with. You can't hide nodes it just displays the nodes you send it. It is upto you to filter.
Thanks for your input. I was hoping to find a way other than removing the node. I would like to keep the root node because a number of my parsing and recursive methods rely on that root node. I just wanted to make it invisible. But of course if I set its invisible property to false, the rest won't show.
If you have other thoughts, that would be appreciated.
Hi Danny,
One possible workaround is maybe to set the node's height to 0 or maybe 1. But I'm not sure if the tree supports setting the height of a node, or if it does, if it supports setting it to so small a number.
Another option would be to use a CreationFilter or a DrawFilter to hide the node's UIElements without afftecting the child nodes. The down side of this approach is that it will leave a space where the node would have been.