how to change autohide tab control active and inactive font?

Support,

I'm looking to change the font for auto-hidden tabs, both in the active and inactive state. How can this be accomplished when themes are enabled?

The following setting works,

DockingManager1.AutoHideTabFont = new Font("Segoe UI", 9F, FontStyle.Regular, GraphicsUnit.Point);

But, I'm also looking to set the font when the tab is inactive.

Additionally, how can one override the tab back color when a theme has already been applied to the docking manager?

Thanks.


5 Replies

ST Stoked September 2, 2021 06:57 PM UTC

I have attached a video showing my issue. You will see that I have 3 panels that are docked. When I auto-hide the first one, the auto-hide tab font is correct. However, any subsequent hiding of panels the font changes back to the default, which I'm assuming is MS Sans Serif 8.25.

Additionally, you will notice that once I pin a tab, the topmost tab's font now changes to the font that I desire, and this is repeatable, as seen in the video.

I would like the font to be consistent for all auto-hidden tabs, including when there are more than 1 hidden.

Also, you will notice the tab background color is white, however I want that to be SystemColors.Control. How does one change that?

Please let me know how to proceed.



Attachment: autohide_tab_font_issue_eb2ef289.zip


ST Stoked September 3, 2021 01:36 PM UTC

Support,

Last night I think I was able to resolve this by modifying the following property:

DockingManager1.ThemeStyle.AutoHideStyle.Font

If there is another way to accomplish my original ask, please let me know.

Thanks.



SN Sudharsan Narayanan Syncfusion Team September 6, 2021 03:54 AM UTC

Hi Brent,

Please find the sample for the auto hide font style and background color of tab and please check the documentation link for the more details of tab back color and etc.,

Sample: https://www.syncfusion.com/downloads/support/forum/168544/ze/AutoHide_TabFont-574880721

Video: https://www.syncfusion.com/downloads/support/forum/168544/ze/AutoHide_TabFont_video1065273808

Documentation: https://help.syncfusion.com/windowsforms/docking-manager/appearance#customize-auto-hide-window

Please check with the sample and let me know your concerns.

Regards,
 
Sudharsan


ST Stoked September 6, 2021 02:01 PM UTC

Support, per my update on September 3rd, I was able to figure this out. Thank you.



SN Sudharsan Narayanan Syncfusion Team September 7, 2021 10:32 AM UTC

Hi Brent, 
 
We are glad to know that the reported problem has been resolved at your end. Please let us know if you have any further queries on this. We are happy to help you😊.

 
Regards, 
Sudharsan 


Loader.
Up arrow icon