Share via


ContentDialog.IsPrimaryButtonEnabled 屬性

定義

取得或設定對話框的主要按鈕是否已啟用。

public:
 property bool IsPrimaryButtonEnabled { bool get(); void set(bool value); };
bool IsPrimaryButtonEnabled();

void IsPrimaryButtonEnabled(bool value);
public bool IsPrimaryButtonEnabled { get; set; }
var boolean = contentDialog.isPrimaryButtonEnabled;
contentDialog.isPrimaryButtonEnabled = boolean;
Public Property IsPrimaryButtonEnabled As Boolean
<ContentDialog IsPrimaryButtonEnabled="bool"/>

屬性值

Boolean

bool

true 如果已啟用對話框的主要按鈕,則為 ;否則為 false。 預設值為 true

適用於