Sets a new zoom factor, centering the view on the specified point (in root space coordinates).

Namespace: Ico.Gwx
Assembly: GwxRuntimeViewControl (in GwxRuntimeViewControl.dll) Version: 10.97.212.0 (10.97.212.00)

Syntax

C#
public void ZoomTo(
	double newZoom,
	Point zoomCenter,
	int animationDuration
)
Visual Basic
Public Sub ZoomTo ( _
	newZoom As Double, _
	zoomCenter As Point, _
	animationDuration As Integer _
)
JScript
public final function ZoomTo(
	newZoom : double, 
	zoomCenter : Point, 
	animationDuration : int
)

Parameters

newZoom
Type: System..::..Double
A new zoom percentate (where 1.0=100%).
zoomCenter
Type: System.Windows..::..Point
Center point for the zoom operation (in the coordinate system of the root visual).
animationDuration
Type: System..::..Int32
Time duration in milliseconds to animate the transition to the new zoom (zero for no animation).

See Also