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}"//>

属性值

按钮的应用样式(如果存在);否则为 null

Windows 要求

设备系列
Windows 10 Creators Update (在 10.0.15063.0 中引入)
API contract
Windows.Foundation.UniversalApiContract (在 v4.0 中引入)

适用于