ContentDialog.CloseButtonStyle 屬性

定義

取得或設定要套用至對話方塊關閉按鈕的 Style

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

屬性值

如果存在,則為按鈕套用的樣式;否則為 null

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

適用於