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
  • 970
    Offline posted

    This is a work around, however I would still like to know the answer. Certainly the structure knows where it is.

    I added string Parent to my class.  When I fill my data I put in the Parent information as well.

    //x is a string that contains the Parent

    var x = (e.Node.DataContext as MyClass).Parent;

Children