How to change the background color of ToolWindow's Title Bar

Docking/MDI for WPF Forum

Posted 7 years ago by Danang Wahyuadi
Version: 11.2.0552
Avatar

Hi,

How can I change the background color of ToolWindow's Title Bar?

Previously I was able to do that by changing the property for example "TitleBarBackgroundActive" of a ToolWindowContainer. But in the newer version many properties related to title bar has been removed.

Thanks.

Comments (1)

Answer - Posted 7 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hi Danang,

Those properties were only exposed to support dynamic theme switching in previous versions. With the latest version we have revamped our theming system to use shared assets (i.e. brushes) across all our products and simplied the Styles greatly.

In this specific example, you would need to redefine the assocated brush like so:

<SolidColorBrush x:Key="{x:Static themes:AssetResourceKeys.DockingWindowContainerTitleBarBackgroundActiveBrushKey}" Color="Red" />


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.