Change background color of autohidden control caption

I would like to change the background color of the tab caption that shows when a docked control is auto-hidden. Ideally I would like to flash between two colors to draw attention, but even a single contrasting color would do. (see attached image)


More details:

I have a form with a DockingManager and a docked panel on the side with auto-hide enabled. The panel contains a discussion. When the form opens up the panel is hidden so I want to flash the tab if the hidden panel contains new messages in the discussion to draw attention of the user.


I've searched through the documentation but couldn't figure out how to do this. Is this possible?

TIA

Panayotis





4 Replies

SN Sudharsan Narayanan Syncfusion Team March 21, 2022 07:42 AM UTC

Hi Panayothis,

You can be able to achieve the “Change BackColor of AutoHide” requirement by using the AutoHideTabForeColor with the Timer. We have prepared the sample with IntegerTextBox so that the value changes, the timer starts, and it changes the color to draw attention. You can find the sample from below,

Sample: https://www.syncfusion.com/downloads/support/forum/173700/ze/DockingAutoHideColor-169967394


Video: https://www.syncfusion.com/downloads/support/forum/173700/ze/DockingAutohideColor_Video-1473177816

Please check the above sample and video, and let us know your concerns about this.

Regards,
Sudharsan



PK Panayotis Kouvarakis March 21, 2022 09:09 PM UTC

Hi Sudharsan,


Thank you for your reply and provided sample.

I actually wanted to change the background color of the tab not the foreground, but I guess if that's all I can get, it would have to do. Even so, the suggested solution only works when the DockingManager VisualStyle is set to Default. In my case the VisualStyle is set to Office2007 (as is the case with the rest of the app) and AutoHideTabForeColor has no effect.


Kind regards,

Panayotis



SN Sudharsan Narayanan Syncfusion Team March 23, 2022 04:11 AM UTC

Hi Panayothis,

Currently, we are analyzing your reported query. We will validate and update you the details on or before 24th March 2022. 
 
Regards, 
Sudharsan 



GT Gokul Thanudhas Syncfusion Team June 24, 2022 03:29 PM UTC

Hi Panayothis,


Sorry for the delay in getting back to you


Query 1: Change the tab backcolor of autohide


Currently, there is no support to change the tab backcolor of autohide for the office2007 theme. But you can change the tab back color of autohide of Office2019Colorful and HighContrastBlack by using the below code snippets


dockingManager1.ThemeStyle.AutoHideStyle.MarkerColor = Color.Red;


Query 2: Changing tab forecolor is not working in office2007 theme


We are not able to reproduce the issue. Please refer to the attached sample and video for your reference


Regards,

Gokul T.


Attachment: DockingManagerAutoHide_cc2c9e2a.zip

Loader.
Up arrow icon