Share via


IXRSelector::SetSelectedIndex (Windows Embedded CE 6.0)

1/6/2010

This method sets the index of the selected item in the list.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectedIndex(
    int Value
) = 0;

Parameters

  • Value
    [in] An integer value that indicates the index of the selected item in the list.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

IXRSelector does not allow more than one item to be selected at a time. You can use IXRSelector::GetSelectedIndex or IXRSelector::GetSelectedItem to set the selected item from application code.

.NET Framework Equivalent

System.Windows.Controls.Primitives.Selector.SelectedIndex

Requirements

Header XamlRuntime.h
sysgen SYSGEN_XAML_RUNTIME
Windows Embedded CE Windows Embedded CE 6.0 R3

See Also

Reference

IXRSelector
IXRSelector::GetSelectedIndex