Selector.SelectedValue property

Gets or sets the value of the selected item, obtained by using the SelectedValuePath.

Syntax


public:
property Object^ SelectedValue { 
   Object^ get();
   void set (Object^ value);
}


<selector SelectedValue="valueAsString"/>

XAML Values

valueAsString

A string that is equivalent to the desired value as displayed in the UI.

Property value

Type: System.Object [.NET] | Platform::Object [C++]

The value of the selected item, obtained by using the SelectedValuePath, or null if no item is selected. The default value is null.

Requirements (device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (operating system)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Runtime apps only]

Namespace

Windows.UI.Xaml.Controls.Primitives
Windows::UI::Xaml::Controls::Primitives [C++]

Metadata

Windows.winmd

See also

Selector

 

 

Show:
© 2015 Microsoft