CenterOn(Point, Boolean) Method

Definition

Assembly PanAndZoom.dll

Centers the viewport on a specific point in content coordinates.

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

Parameters

point
Avalonia.Point

The point to center on.

animate
Boolean

Whether to animate the transition.