CenterOn(Control, Boolean) Method

Definition

Assembly PanAndZoom.dll

Centers the viewport on a control element.

public void CenterOn(Control element, bool animate = true)

Parameters

element
Avalonia.Controls.Control

The element to center on.

animate
Boolean

Whether to animate the transition.