Udostępnij za pośrednictwem


ListViewSelectionMode Enum

Definition

Defines constants that specify the selection mode of a ListView or GridView.

public enum class ListViewSelectionMode
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class ListViewSelectionMode
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum ListViewSelectionMode
Public Enum ListViewSelectionMode
Inheritance
ListViewSelectionMode
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
None 0

A user can't select items.

Single 1

A user can select a single item.

Multiple 2

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

Extended 3

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

Applies to