Share via


IXRListBoxItem::SetIsSelected (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE SetIsSelected(
    __in  bool   IsSelected
) = 0;

Parameters

  • IsSelected
    [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

See Also

Reference

IXRListBoxItem
IXRListBoxItem::GetIsSelected