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
425
Bring Node into view
posted

We have a search feature that shows users in our chart in a listbox.  When you select the user in the listbox, we select the node, but sometimes the node can be off screen.  How can we bring it into view?

Parents
No Data
Reply
  • 34510
    Verified Answer
    Offline posted

    Hi dirklx,

    Looks like the only way to achieve this is to update the ItemsSource to point to the data located in the selected node.  When the user selects an item in the list box you can assign it's data to the XamOrgChart's ItemsSource.  Doing this and calling ScaleToFit together will place the node in view as well as display all the nodes children.

    I've attached a sample that demonstrates this.  Let me know if you have any questions on it.

    xamOrgChart.ViewSelectedNode.zip
Children
No Data