Allows you to change the current active item in the viewer using the keyboard or mouse/touch.
public class ImageViewerActiveItemInteractiveMode : ImageViewerInteractiveMode
public ref class ImageViewerActiveItemInteractiveMode : ImageViewerInteractiveMode
The ImageViewerActiveItemInteractiveMode derives from the ImageViewerInteractiveMode and subscribes to the following events of the InteractiveService:
Move if IsHoverEnabled is true
KeyDown if IsKeyboardEnabled is true
ImageViewerActiveItemInteractiveMode changes the current ActiveItem as follows:
If the user clicks on an item, it will become the new ActiveItem.
If IsKeyboardEnabled is set to true, moving using the arrow, page up/down, home and end key will also set the ActiveItem. This works as a "grid" using the current ViewLayout. For example, if you press the down arrow, the item below the current active item (if any) will become the new active item. If you press the left arrow, the item to the left of the current item will become the new active item, and so on.
If the value of IsHoverEnabled is set to true, then moving the mouse over an item will change its IsHovered to true, whereas moving the mouse away from the item sets it back to false. If you changed the image viewer appearance to have different styles for hovered items, then the UI will provide an indication of this operation. For more information, refer to Image Viewer Appearance.
When a new active item is set, InteractiveEventArgs.IsHandled is set to true.
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;
public void ImageViewerActiveItemInteractiveModeExample()
{
_imageViewer.InteractiveModes.BeginUpdate();
_imageViewer.InteractiveModes.Add(new ImageViewerActiveItemInteractiveMode { IsHoverEnabled = true, IsKeyboardEnabled = 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