Megosztás a következőn keresztül:


SelectionMode Enum

Definition

Defines constants that specify the selection behavior for a ListBox.

public enum class SelectionMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SelectionMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SelectionMode
Public Enum SelectionMode
Inheritance
SelectionMode
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Single 0

The user can select only one item at a time.

Multiple 1

The user can select multiple items without entering a special mode.

Extended 2

The user can select multiple items by entering a special mode, for example when depressing a modifier key.

Applies to