Skip to main content

BringIntoView Method

Attempts to bring a portion of the target visual into view by scrolling the content.

Definition

Namespace: Avalonia.Controls.Primitives
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)

bool BringIntoView(
Control target,
Rect targetRect
)
View Source

Parameters

  Control
The target visual.
  Rect
The portion of the target visual to bring into view.

Return Value

Boolean
True if the scroll offset was changed; otherwise false.

See Also

Reference

ILogicalScrollable Interface
Avalonia.Controls.Primitives Namespace