CenterOn(Rect, Boolean) Method

Definition

Assembly PanAndZoom.dll

Centers the viewport on a rectangle in content coordinates.

public void CenterOn(Rect rect, bool animate = true)

Parameters

rect
Avalonia.Rect

The rectangle to center on.

animate
Boolean

Whether to animate the transition.