Extra UI controls on Tab window

Docking/MDI for WPF Forum

Posted 13 years ago by Mick
Version: 11.1.0542
Platform: .NET 4.0
Environment: Windows Vista (32-bit)
Avatar
Steps to reproduce:

1) Open Sample browser
2) Go to Docking & MDI -> Colored Tabs
3) Open a WPF visual tree analysis tool (I used the freely available program: Snoop)
4) Look at the headers for the tabs

When you get to step 4, you will notice that there is are two TextBlocks for every one that gets displayed on the header of the tab. Here is the image.

On tabs 2 and 3, you see a bold TextBlock as well as a non-bold TextBlock. However, on Tab 1, the foremost TextBlock is bold, which makes me think the back one isn't even necessary).

Mick

Comments (1)

Posted 13 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mick,

That's correct, the extra TextBlocks are there on purpose. The text of the active tab is shown in bold, and inactive tabs use a normal font weight. We include a bold version of the TextBlocks to prevent the tab from resizing slightly when focused. Because a TextBlock can be slightly larger when bold versus normal.


Actipro Software Support

The latest build of this product (v24.1.1) 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.