Requesting TreeView/TreeNode-Recursive Sample Control #262
najak3d
started this conversation in
Feature Requests
Replies: 1 comment 3 replies
-
In the absence of advice, I think I did alright here. Here's the visual result: We are very pleased with how this is all working out. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We're at the point now where we've got to present TreeView data to the user with expandable nodes.
I was hoping NovaUI team might have something out before we needed it, but looks like we're going to have to do it ourselves for now. We might submit this back to you, when done.
Since we're headed to do it ourselves, looking for the most robust/standard way to do it. I was thinking of creating TreeNode.cs/TreeNodeVisuals.cs, and basing it on DropDown.cs and the DropDownVisuals.cs... as the foundation, and make it nest recursively inside itself. Instead of creating a ListView of Toggle controls, it would be a ListView of more TreeNodes.
We'll have it lazy load on Expansion (similar to how the Dropdown works now).
As user hovers/clicks on various TreeNodes, the event will propagate up to the Root TreeNode (or until handled), so that custom code can handle those two events.
I assume you might be interested in having this code after I'm done, yes?
Beta Was this translation helpful? Give feedback.
All reactions