Skip to main content

BringIntoViewOnFocusChange Property

Gets or sets a value that determines whether the ScrollViewer uses a bring-into-view scroll behavior when an item in the view gets focus.

Definition

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

public bool BringIntoViewOnFocusChange { get; set; }

Property Value

Boolean
true to use a behavior that brings focused items into view. false to use a behavior that focused items do not automatically scroll into view. The default is true.

Remarks

BringIntoViewOnFocusChange can either be set explicitly on a ScrollViewer, or a the attached ScrollViewer.BringIntoViewOnFocusChange property can be set on an element that hosts a ScrollViewer.

See Also

Reference

ScrollViewer Class
Avalonia.Controls Namespace