共用方式為


ToolBarTray.Background 屬性

定義

取得或設定一筆刷子來作為背景色 ToolBarTray

public:
 property System::Windows::Media::Brush ^ Background { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Background { get; set; }
member this.Background : System.Windows.Media.Brush with get, set
Public Property Background As Brush

屬性值

一把用來畫背景色 ToolBarTray的畫筆。

範例

以下範例使用屬性 Background 設定畫筆為 的背景色 ToolBarTray

<ToolBarTray Background="White" IsLocked="True">

備註

相依財產資訊

項目 價值
識別碼欄位 BackgroundProperty
元資料屬性設為 true AffectsRenderSubPropertiesDoNotAffectRender

適用於

另請參閱