Share via


ContentDialogButton Enumeration

Definition

Definiert Konstanten, die die Standardschaltfläche in einem Inhaltsdialogfeld angeben.

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
Vererbung
ContentDialogButton
Attribute

Felder

Close 3

Die Schaltfläche zum Schließen ist die Standardeinstellung.

None 0

Es wird keine Schaltfläche als Standard angegeben.

Primary 1

Die primäre Schaltfläche ist die Standardschaltfläche.

Secondary 2

Die sekundäre Schaltfläche ist die Standardschaltfläche.

Hinweise

Diese Enumeration wird von der ContentDialog.DefaultButton-Eigenschaft verwendet. Die Standardschaltfläche reagiert auf die EINGABETASTE und weist einen anderen visuellen Stil auf.

Gilt für: