Question

I have a winform application which has 2012 light theme on weifenluo.winformsui.docking.

Problem is that the 2012 light theme is not quite viewable as everything is in light colors. I want to change background color of the docking area: I have changed the document background color but unable to change auto hide area when the windows are hidden.

Screenshot of winform application

I got properties in weifenluo dockpanel to change the color but its working only 2003 and 2005 theme not in 2012 light theme

public class VS2012LightTheme : ThemeBase

skin.AutoHideStripSkin.DockStripGradient.StartColor = specialBlue; skin.AutoHideStripSkin.DockStripGradient.EndColor = SystemColors.ControlLight;

Was it helpful?

Solution

The areas are controlled by VS2012LightAutoHideStrip.

Thus, if you want to change their look and feel, change the controls (start from OnPaint event handler), or write your own.

ITheme derived classes only control a small portion of the whole look and feel, so your changes to VS2012LightTheme won't achieve what you want.

OTHER TIPS

Try this:

Tabname.BackColor = System.Drawing.Color.X

where X is the colour you want.

Refer this link for more info: dockpanel suite

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top