Visual Basic (Declaration) | |
---|---|
Public Class ImagePanViewer Inherits FrameworkElement |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
public class ImagePanViewer : FrameworkElement |
C++/CLI | |
---|---|
public ref class ImagePanViewer : public FrameworkElement |
XAML Object Element Usage | |
---|---|
<ImagePanViewer .../> |
XAML Object Element Usage | |
---|---|
<ImagePanViewer .../> |
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.
System.Object
System.Windows.Threading.DispatcherObject
System.Windows.DependencyObject
System.Windows.Media.Visual
System.Windows.UIElement
System.Windows.FrameworkElement
Leadtools.Windows.Controls.ImagePanViewer
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Vista, Windows Server 2003 family, Windows Server 2008 family