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
Avatar

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
Avatar

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.1) 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.