Search code examples
c#dockpanel-suite

How change autohide area color


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;


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.