Gets the ImageViewerInteractiveMode that the viewer control is currently using to process input events.
public virtual Leadtools.Controls.ImageViewerInteractiveMode WorkingInteractiveMode {get;}
Public Overridable ReadOnly Property WorkingInteractiveMode As Leadtools.Controls.ImageViewerInteractiveMode
public virtual Leadtools.Controls.ImageViewerInteractiveMode WorkingInteractiveMode {get;}
@property (nonatomic, strong, readonly, nullable) LTImageViewerInteractiveMode *workingInteractiveMode
public ImageViewerInteractiveMode getWorkingInteractiveMode()
get_WorkingInteractiveMode();
The ImageViewerInteractiveMode that the viewer control is currently using to process input events.
ImageViewer will hook to the ImageViewerInteractiveMode.WorkStarted and ImageViewerInteractiveMode.WorkCompleted of the interactive modes set in MouseWheelInteractiveMode or TouchInteractiveMode. When work starts or completes, the WorkingInteractiveModeChanged event fires and the value of WorkingInteractiveMode updates accordingly.
Use WorkingInteractiveMode to perform any custom action required by your application.
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;
public void WorkingInteractiveModeExample()
{
// Pan Zoom interactive mode is set in other parts of this demo
// Hook to WorkingInteractiveMode of the _viewer
_viewer.WorkingInteractiveModeChanged += _viewer_WorkingInteractiveModeChanged;
string content;
// This will be used by mouse and touch, so delcare it here once
ImageViewerPanZoomInteractiveMode zoomPan = new ImageViewerPanZoomInteractiveMode();
_viewer.TouchInteractiveMode = zoomPan;
content = "Touch and drag to pan, pinch to zoom";
_infoLabel.Text = content;
}
void _viewer_WorkingInteractiveModeChanged(object sender, EventArgs e)
{
// Get the current working interactive mode
ImageViewerInteractiveMode interactiveMode = _viewer.WorkingInteractiveMode;
if (interactiveMode != null)
{
_infoLabel.Text = _infoLabel.Text + " - " + interactiveMode.Name + " is working";
}
else
{
_infoLabel.Text = _infoLabel.Text + " - finished working";
}
}
Products |
Support |
Feedback: WorkingInteractiveMode Property - OLeadtools.Controls |
Introduction |
Help Version 19.0.2017.3.23
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.