Automatically pans the view when the mouse or touch is next to the edge.
public class ImageViewerAutoPanInteractiveMode : ImageViewerInteractiveMode
Public Class ImageViewerAutoPanInteractiveMode
public ref class ImageViewerAutoPanInteractiveMode : ImageViewerInteractiveMode
ImageViewerAutoPanInteractiveMode works when the view boundary is larger than the current image viewer client area as follows:
When the mouse or touch is close to the edge of the viewer, and there are more room in that direction, then this mode will call ImageViewer.ScrollByRestrict to pan the view in that direction. How far the pointer is from the boundary to be consider "close" is determined by EdgeSize. The delay before auto-panning starts is controlled by BeginDelay.
ImageViewerAutoPanInteractiveMode can work with or without the user holding a mouse button down through the value of MouseButtons. It can also be combined with any other mode to allow auto-panning the viewer while the other mode is running because it: * does not set InteractiveEventArgs.IsHandled to true when working
The example code shows how to use auto-pan with ImageViewerRubberBandInteractiveMode to allow drawing a rubber band and moving towards the edge of the viewer when the user reaches the edge. This is the auto-pan performing extra functionality to rubber-band.
For more information, refer to Image Viewer Interactive Modes.
var autopan = new ImageViewerAutoPanInteractiveMode();
autopan.PanDelay = 100;
Dim autopan As New ImageViewerAutoPanInteractiveMode()
autopan.PanDelay = 100
Medical Web Viewer .NET