Share via


IXRListBoxItem::SetIsSelected (Windows Embedded CE 6.0)

1/6/2010

This method sets a value that indicates whether this list-box item is selected.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetIsSelected(
    bool Value
) = 0;

Parameters

  • Value
    [in] A Boolean that indicates whether this item is selected. Set this to true to select the item. Set it to false to clear the item.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To select an IXRListBoxItem in an IXRListBox, call SetIsSelected and pass in true.

.NET Framework Equivalent

System.Windows.Controls.ListBoxItem.IsSelected

Requirements

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

See Also

Reference

IXRListBoxItem
IXRListBoxItem::GetIsSelected