ContentDialogButton ContentDialogButton ContentDialogButton ContentDialogButton Enum


Defines constants that specify the default button on a content dialog.

public : enum class ContentDialogButton
enum class winrt::Windows::UI::Xaml::Controls::ContentDialogButton : int32_t
public enum ContentDialogButton
Public Enum ContentDialogButton

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)


Close Close Close Close 3

The close button is the default.

None None None None 0

No button is specified as the default.

Primary Primary Primary Primary 1

The primary button is the default.

Secondary Secondary Secondary Secondary 2

The secondary button is the default.


This enumeration is used by the ContentDialog.DefaultButton property. The default button responds to the Enter key and has a different visual style.