TreeView.SelectedItem Property
Silverlight
Gets the selected item in a TreeView.
Namespace: System.Windows.Controls
Assembly: System.Windows.Controls (in System.Windows.Controls.dll)
Property Value
Type: System.ObjectThe currently selected item or null if no item is selected. The default value is null.
Dependency property identifier field: SelectedItemProperty
When the value of SelectedItem changes, the SelectedItemChanged event occurs.
SelectedItem is a read-only property. To set the selected item for a TreeView, set the IsSelected property of a TreeViewItem.
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.