I'm using the NodeMouseLeftButtonDown event, and need to know where I'm at in the navigation of the xamtreemap. If I load too many nodes, performance takes a big hit. So I'm loading them as needed. The problem is that I have no idea where what the previous nodes are. Something like e.node.currentpath even e.node.parent.DataContext. I just can't seem to find the path, what am I missing?
Hello,
Thank you for your post. I have been looking into it and I can suggest you use the following code in the NodeMouseLeftButtonDown event handler in order to get the parent object of the current node:
if (e.Node.Parent is NodesPanel) { var parent = (e.Node.Parent as NodesPanel).DataContext; }
Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Thanks for the thought. This gives me all nodes of the parent. I need to know which parent I'm currently in.
For example
Level 1 - Meats, Dairy, Vegetables, Fruit
Level 2 - Under Fruit - Apples.
So I need to know that I'm under Fruit when apples is selected.