Share via


ListView.SelectionMode Property

Definition

Gets or sets a value that controls whether and how many items can be selected.

public:
 property Microsoft::Maui::Controls::ListViewSelectionMode SelectionMode { Microsoft::Maui::Controls::ListViewSelectionMode get(); void set(Microsoft::Maui::Controls::ListViewSelectionMode value); };
public Microsoft.Maui.Controls.ListViewSelectionMode SelectionMode { get; set; }
member this.SelectionMode : Microsoft.Maui.Controls.ListViewSelectionMode with get, set
Public Property SelectionMode As ListViewSelectionMode

Property Value

None if no selections can be made. Single if one selection can be made.

Remarks

If an item is selected, changing SelectionMode to None will cause the item to be deselected, and ItemSelected to be raised with a null item value.

Applies to