want to custom Actipro control style

Docking/MDI for WPF Forum

Posted 8 months ago by Leif Wang
Version: 19.1.0683
Avatar

Hi,

    I have these questions:

        1、About ToolWindowContainer, how to remove the title bar region of many points, and change the background color when

Activate
        2、About DockSite,how to change the document window header background color when selected
        2、About Ribbon, how to change the header background color, and change the title header content

   

Thanks in advance!

Ruifeng,

Comments (1)

Posted 8 months ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

All of these things can be changed by putting some theme resource overrides in your Application.Resources, like:

<system:Boolean x:Key="{x:Static themes:AssetResourceKeys.DockingWindowContainerTitleBarHasGripperBooleanKey}">False</system:Boolean>

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

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

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

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

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

...

Some other asset keys would be those starting with Window*.  You can use our Sample Browser's "Theme Browser" tool from the Tools menu to see all the asset resources so that you know which ones to customize.


Actipro Software Support

The latest build of this product (v2019.1 build 0685) was released 5 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.