ZoomToRectangle(Rect, Nullable, Boolean) Method

Definition

Assembly PanAndZoom.dll

Zooms to fit a specific rectangle in content coordinates.

public void ZoomToRectangle(Rect rect, Thickness? padding = default(Thickness? ), bool animate = true)

Parameters

rect
Avalonia.Rect

The rectangle to zoom to.

padding
Nullable<Thickness>

Optional padding around the rectangle.

animate
Boolean

Whether to animate the transition.