Changes the active item or current page using the mouse or touch.
public class ImageViewerPagerInteractiveMode : ImageViewerInteractiveMode
public ref class ImageViewerPagerInteractiveMode : ImageViewerInteractiveMode
ImageViewerPagerInteractiveMode derives from ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:
InteractiveEventArgs.IsHandled is set to true if the interaction is on target and not already handled, regardless of whether the drag causes a change in the active item index.
This mode has two modes:
If the value of ChangeActiveItem is true, then when the user clicks and drags on the viewer surface, the current active item index changes in the viewer accordingly.
If the value of ChangeActiveItem is false, then when the user clicks and drags on the viewer surface, the current page number in the item being used (Item) will change. This only works if the item has a valid image in Image and if it has multiple pages.
In both cases, this mode works by calculating the maximum change for the operation (either number of items when changing the active item or number of pages in RasterImage.PageCount when changing the page number). Next, this value is normalized across the current height of the viewer. When the user clicks and drags on the viewer, the value changes based on the current location. Dragging up will decrease value while dragging down will increase the value.
For more information, refer to Image Viewer Interactive Modes.
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
_imageViewer.InteractiveModes.BeginUpdate();
_imageViewer.InteractiveModes.Add(new ImageViewerPagerInteractiveMode { IsEnabled = true });
_imageViewer.InteractiveModes.EndUpdate();
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document