ContentDialog.SecondaryButtonStyle Property

Definition

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

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

public:
 property Style ^ SecondaryButtonStyle { Style ^ get(); void set(Style ^ value); };
Style SecondaryButtonStyle();

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

Property Value

Style

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