AutoScrollToSelectedItem Property
Gets or sets a value indicating whether to automatically scroll to newly selected items.
Definition
Namespace: Avalonia.Controls
Assembly: Avalonia.Controls (in Avalonia.Controls.dll)
- C#
- VB
- F#
public bool AutoScrollToSelectedItem { get; set; }
Public Property AutoScrollToSelectedItem As Boolean
Get
Set
member AutoScrollToSelectedItem : bool with get, set
Property Value
BooleanRemarks
This property is of limited use with TreeView as it will only scroll to realized items. To scroll to a non-expanded item, you need to ensure that its ancestors are expanded.