Closed vdisasm closed 7 years ago
Sorry, is your intent to position a node at the view center?
I have graph with top-to-bottom layout and I'd like to navigate to node so that it is placed at top vertically and center horizontally in WPF viewer.
Or probably at center of view will be good too.
Graph is like this one:
I have added a function Microsoft.Msagl.WpfGraphControl.GraphViewer.PointToCenter that will do the job. Call it with the node center as the parameter.
Thanks a lot.
I want to scroll to some node, so that this node will be at top-center part of the WPF viewer.
I found some workaround, but it seems I don't handle scale correctly (it is 1 here):