ContentDialogButton 列舉

定義

定義常數,指定內容對話框上的預設按鈕。

public enum class ContentDialogButton
/// [Windows.Foundation.Metadata.ContractVersion(Microsoft.UI.Xaml.WinUIContract, 65536)]
enum class ContentDialogButton
[Windows.Foundation.Metadata.ContractVersion(typeof(Microsoft.UI.Xaml.WinUIContract), 65536)]
public enum ContentDialogButton
Public Enum ContentDialogButton
繼承
ContentDialogButton
屬性

欄位

Close 3

關閉按鈕是預設值。

None 0

未將按鈕指定為預設值。

Primary 1

主要按鈕是預設值。

Secondary 2

次要按鈕是預設值。

備註

ContentDialog.DefaultButton 屬性會使用此列舉。 默認按鈕會回應 Enter 鍵,並有不同的可視化樣式。

適用於