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
|
Hi, I would like to know how to define the panning for the current view port? The function DiagramSurface.SetViewPort() seems to be not doing anything even I'd shifted the X position to be larger, I assumed it should pan to the right? |
|
|
Hello Sorry that the panning methods are not very clear, they have gone through a few changes. The SetViewPort method is constrained by the current minimum and maximum scroll bar values. To perform panning, you can use the DiagramSurface.ScrollViewer.TranslateViewport method. This takes 2 parameters: the x delta value and y delta value. - Jason |
|