Skip to main content

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)

public bool AutoScrollToSelectedItem { get; set; }

Property Value

Boolean

Remarks

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.

See Also

Reference

TreeView Class
Avalonia.Controls Namespace