Selector::SelectedItem Property
.NET Framework (current version)
Gets or sets the first item in the current selection or returns null if the selection is empty
Assembly: PresentationFramework (in PresentationFramework.dll)
public: [BindableAttribute(true)] property Object^ SelectedItem { Object^ get(); void set(Object^ value); }
Property Value
Type: System::Object^The first item in the current selection or null if the selection is empty.
If a Selector supports selecting a single item, the SelectedItem property returns the selected item. If a Selector supports multiple selections, SelectedItem returns the item that the user selected first.
Setting SelectedItem in a Selector that supports multiple selections clears existing selected items and sets the selection to the item specified.
Identifier field | |
Metadata properties set to true |
.NET Framework
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 3.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: