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) Version: 2.21.0+44d18b541fc9419ec3c549350a832394661b2a4d
XMLNS for XAML: Not mapped to an xmlns.
Syntax
See GetTrackSelection, SetTrackSelection

Property Value

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