This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
whats the best way to go about making the current diagram Zoom and centre to the selected diagram element. Ive looked at hooking onto the selected element changed event, then modifying SetViewport but this doesnt seem to doing what i want. Any help wouldbe hugely appreciated. thanks. |
|
|
Hello I've found that the easiest way to manipulate the viewport is by using the DiagramSurface.ScrollViewer.TranslateViewPort method. You will also need to modify the zoom using the Zoom property. If this is inconvenient or still doesn't work well, please send us a repro that we can debug to improve the SetViewport functionality. Cheers |
|