ZoomToRectangleExact(Rect, Rect, Boolean) Method

Definition

Assembly PanAndZoom.dll

Zooms to fit a specific rectangle with exact pixel dimensions.

public void ZoomToRectangleExact(Rect rect, Rect viewportRect, bool animate = true)

Parameters

rect
Avalonia.Rect

The rectangle in content coordinates.

viewportRect
Avalonia.Rect

The target rectangle in viewport coordinates.

animate
Boolean

Whether to animate the transition.