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?
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.
The XamOrgChart has a WindowRect property that I believe you can use to move the view around but I can't find a way to get the position of the nodes in order to center the view on them.
I have asked engineering for assistance on this issue and I will update you once I have a response from them. This should be no later than Wednesday.
I'm looking into this issue for you and will update you on monday with my findings.