Partager via


IXRListBoxItem::GetIsSelected (Compact 2013)

3/28/2014

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

Syntax

virtual HRESULT STDMETHODCALLTYPE GetIsSelected(
    __out bool* pIsSelected
) = 0;

Parameters

  • pIsSelected
    [out] Pointer to a Boolean that indicates whether this item is selected. This value is true if the item is selected; otherwise, it is false.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

To select an IXRListBoxItem in an IXRListBox, call IXRListBoxItem::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::SetIsSelected