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
970
how to get the current path
posted

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?

Parents
No Data
Reply
  • 138253
    Offline posted

    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.

Children