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)
- C#
- VB
- F#
public bool BringIntoViewOnFocusChange { get; set; }
Public Property BringIntoViewOnFocusChange As Boolean
Get
Set
member BringIntoViewOnFocusChange : bool with 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.