ContentDialog.PrimaryButtonStyle プロパティ

定義

ダイアログのプライマリ ボタンに適用する スタイル を取得または設定します。

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

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

プロパティ値

ボタンに適用されたスタイル (存在する場合)。それ以外の場合は null

Windows の要件

デバイス ファミリ
Windows 10 Creators Update (10.0.15063.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v4.0 で導入)

適用対象