Skip to main content

BringDescendantIntoView Method

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

Definition​

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

public bool BringDescendantIntoView(
Visual target,
Rect targetRect
)

Parameters​

  Visual
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​

ScrollContentPresenter Class
Avalonia.Controls.Presenters Namespace