ContentDialog.CloseButtonStyle Property


Gets or sets the Style to apply to the dialog's close button.

Equivalent WinUI property: Microsoft.UI.Xaml.Controls.ContentDialog.CloseButtonStyle.

 property Style ^ CloseButtonStyle { Style ^ get(); void set(Style ^ value); };
Style CloseButtonStyle();

void CloseButtonStyle(Style value);
public Style CloseButtonStyle { get; set; }
var style = contentDialog.closeButtonStyle;
contentDialog.closeButtonStyle = style;
Public Property CloseButtonStyle As Style
<contentDialog CloseButtonStyle="{StaticResource styleResourceKey}"//>

Property Value


The applied style for the button, if present; otherwise, null.

Windows 10 requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Applies to