Share via


ItemsView.SelectionMode 屬性

定義

取得或設定 實例的 ItemsView 選取行為。

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

屬性值

列舉值,表示選取行為。 預設值為 Single

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於