Zoom to node

Jun 20, 2013 at 6:33 AM
Hi, small question..
Is there any way i can zoom to a graph node?
I tried finding a 'GetPosition' but couldn't find a relevant one

I basically want to set the zoom control position to the center of a specific node
Thank you
Jun 20, 2013 at 7:41 AM
Hi there,

take a look at LayoutBuilder, or specifically WPFLayoutBuilder. There is method BuildVertex(Point position, double width, double height, object originalVertex, DotVertex<int> dotVertex). You can wrap the original WPFLayoutBuilder and save the position into originalVertex or wherever you want. However you will have to patch the GraphLayout WPF component so that it uses your wapper instead of WPFLayoutBuilder.