Leadtools.Windows.Controls Send comments on this topic. | Back to Introduction - LEADTOOLS WPF | Help Version 16.5.9.25
ImagePanViewer Class
See Also  Members  
Leadtools.Windows.Controls Namespace : ImagePanViewer Class





Represents a LEADTOOLS for WPF ImagePanViewer control for displaying a scaled view of an image.

Object Model


Syntax

Visual Basic (Declaration) 
Public Class ImagePanViewer 
   Inherits FrameworkElement
Visual Basic (Usage)Copy Code
Dim instance As ImagePanViewer
C# 
public class ImagePanViewer : FrameworkElement 
C++/CLI 
public ref class ImagePanViewer : public FrameworkElement 
XAML Object Element Usage 

<ImagePanViewer .../>

XAML Object Element Usage 

<ImagePanViewer .../>

Example

For XAML example, refer to Source.

For C#/VB examples, refer to Source.

Remarks

The ImagePanViewer is used to display a scaled view of an image, which is also being displayed in the BitmapSourceViewer control at a size that would require scrolling. The ImagePanViewer will maintain the image's aspect ratio. In the ImagePanViewer, a colored Pan rectangle will be displayed to indicate the portion of the image currently being displayed in the BitmapSourceViewer associated with this PanViewer control. When a user clicks inside the ImagePanViewer and moves the mouse, while holding down the button, the Pan rectangle will move with the mouse pointer. Set the Source property to a BitmapSourceViewer object to be panned.

Inheritance Hierarchy

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  Leadtools.Windows.Controls.ImagePanViewer

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family

See Also