Compartir a través de


IXRListBox::SetSelectionMode (Compact 2013)

3/28/2014

This method sets the selection behavior for the list box control.

Syntax

virtual HRESULT STDMETHODCALLTYPE SetSelectionMode(
    __in  XRSelectionMode   SelectionMode
) = 0;

Parameters

  • SelectionMode
    [in] An XRSelectionMode enumerated value that specifies the selection behavior for the list box.

Return Value

Returns an HRESULT that indicates success or failure.

Remarks

Use the IXRListBox::SetSelectionMode method to specify whether the user can select multiple items and how the user can select the multiple items.

For example, use the enumerated value XRSelectionMode_Multiple to allow the user to select multiple items with the mouse. Use the enumerated value XRSelectionMode_Extended to allow the user to select multiple items by pressing a modifier key such as CTRL or SHIFT.

.NET Framework Equivalent

System.Windows.Controls.ListBox.SelectionMode

Requirements

Header

XamlRuntime.h

sysgen

SYSGEN_XAML_RUNTIME

See Also

Reference

IXRListBox