ListView.SelectionMode Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.