ItemsView.SelectionMode Property

Definition

Gets or sets the selection behavior for an ItemsView instance.

public:
 property ItemsViewSelectionMode SelectionMode { ItemsViewSelectionMode get(); void set(ItemsViewSelectionMode value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")]
ItemsViewSelectionMode SelectionMode();

void SelectionMode(ItemsViewSelectionMode value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")]
ItemsViewSelectionMode SelectionMode();

void SelectionMode(ItemsViewSelectionMode value);
public ItemsViewSelectionMode SelectionMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")]
public ItemsViewSelectionMode SelectionMode { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="ItemsView::s_defaultSelectionMode")] set; }
var itemsViewSelectionMode = itemsView.selectionMode;
itemsView.selectionMode = itemsViewSelectionMode;
Public Property SelectionMode As ItemsViewSelectionMode

Property Value

An enumeration value that indicates the selection behavior. The default is Single.

Attributes
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

Applies to