EnhancedTreeViewAutoExpandSelected Property DW.WPFToolkit Documentation
Gets or sets a value which indicates if the TreeViewItems gets expanded automatically to the selected item when using SelectedElement.

Namespace: DW.WPFToolkit.Controls
Assembly: DW.WPFToolkit (in DW.WPFToolkit.dll) Version:

public bool AutoExpandSelected { get; set; }

Property Value

Type: Boolean

This works only if the items are not virtualized or were visible already.
In ItemsPanelTemplate usually a VirtualizingStackPanel is used, then the TreeViewItems gets created only after expanding the parent.
With overriding the ItemsPanel with a normal StackPanel all container should get created directly, but then the performance will suffer depending an the amount of items.

The default value is false.
See Also