LEADTOOLS WPF and Silverlight (Leadtools.Windows.Controls assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
CenterPan Method
See Also 
Leadtools.Windows.Controls Namespace > ImagePanViewer Class : CenterPan Method



Centers the current view inside the ImagePanViewerSupported in Silverlight, Windows Phone 7

Syntax

Visual Basic (Declaration) 
Public Sub CenterPan() 
Visual Basic (Usage)Copy Code
Dim instance As ImagePanViewer
 
instance.CenterPan()
C# 
public void CenterPan()
C++/CLI 
public:
void CenterPan(); 

Example

Visual BasicCopy Code
Public Sub ImagePanViewer_CenterPan(ByVal panViewer As ImagePanViewer)
    panViewer.CenterPan()
End Sub
C#Copy Code
public void ImagePanViewer_CenterPan(ImagePanViewer panViewer)
{
   panViewer.CenterPan();
}
SilverlightCSharpCopy Code
public void ImagePanViewer_CenterPan(ImagePanViewer panViewer)
{
   panViewer.CenterPan();
}
SilverlightVBCopy Code
Public Sub ImagePanViewer_CenterPan(ByVal panViewer As ImagePanViewer)
   panViewer.CenterPan()
End Sub

Remarks

Calling this method will center the current view inside the pan viewer. The associated viewer in Source will center its view as well.

Requirements

Target Platforms: Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also