語言

NavigationViewItem.SelectsOnInvoked 屬性

定義

取得或設定一個值,指示呼叫導覽選單項目是否也會選取該項目。

public:
 property bool SelectsOnInvoked { bool get(); void set(bool value); };
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool SelectsOnInvoked();

void SelectsOnInvoked(bool value);
/// [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [get: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
/// [set: Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
bool SelectsOnInvoked();

void SelectsOnInvoked(bool value);
public bool SelectsOnInvoked { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
[Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")]
public bool SelectsOnInvoked { [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] get; [Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValue(value="true")] set; }
var boolean = navigationViewItem.selectsOnInvoked;
navigationViewItem.selectsOnInvoked = boolean;
Public Property SelectsOnInvoked As Boolean

屬性值

Boolean

bool

若呼叫導覽選單項目同時選取該選單,則為 true;否則,則為錯誤。 預設值為 True。

屬性
Microsoft.UI.Xaml.CustomAttributes.MUXPropertyDefaultValueAttribute

適用於