通过


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

注解

Dependency 属性信息

物品 价值
标识符字段 BackgroundProperty
元数据属性设置为 true AffectsRenderSubPropertiesDoNotAffectRender

适用于

另请参阅