CenterOn(Point, Double, Boolean) Method

Definition

Assembly PanAndZoom.dll

Centers the viewport on a specific point in content coordinates with a specific zoom level.

public void CenterOn(Point point, double zoom, bool animate = true)

Parameters

point
Avalonia.Point

The point to center on.

zoom
Double

The target zoom level.

animate
Boolean

Whether to animate the transition.