Click or drag to resize

SelectorExtensionsTrackSelection Attached Property

A value indicating whether selection should be tracked or not.

Namespace:  TomsToolbox.Wpf
Assembly:  TomsToolbox.Wpf (in TomsToolbox.Wpf.dll)
Syntax
See GetTrackSelection, SetTrackSelection

Property Value

Type: Boolean
Remarks
When a Selector is embedded in a dynamic page, e.g. another selector, the visual is recreated or reused with another data context whenever the page is displayed.

TrackSelection links the selected index with the view model (DataContext) of the selector, restoring the cached index whenever the same view model is displayed. If no index is cached, the first item will be selected.

See Also