How to set tab header text color to change same as default

Docking/MDI for WPF Forum

Posted 12 years ago by David Sherwood
Version: 12.1.0560

In 2012.1.560 the tab header reverses color when not selected but this does not happen when I define my own tab header. When my tab is not selected, my text remains black but now it's on a dark background.

How can I get by TextBlock text in my header to behave the same as the default?

Comments (1)

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

Hi David,

FYI, you have licensed WPF Studio so you can download our default styles/templates at any time to see what they do.

Our template should be setting the TextElement.Foreground property on an element above where the content is inserted.  I believe that will inherit down.  But otherwise, you may be able to bind up to an ancestor DockingWindow and to the TabForeground property.

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.