1

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;

2 Answers2

1

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.

Lex Li
  • 60,503
  • 9
  • 116
  • 147
-1

Try this:

Tabname.BackColor = System.Drawing.Color.X

where X is the colour you want.

Refer this link for more info: dockpanel suite

Vishal I P
  • 2,005
  • 4
  • 24
  • 41
  • Your screeshots and markings are little confusing.Anyway check the link shared below,it will help you: http://stackoverflow.com/questions/5338587/set-tabpage-header-color If you find my answer as helpful don't forget to mark this as an answer:http://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work – Vishal I P Mar 29 '14 at 09:04
  • i am using weifenluo.winformsui.docking – user2034654 Mar 29 '14 at 09:54
  • I have updated my answer with the link for your reference.Check it.It will help you. – Vishal I P Mar 29 '14 at 10:12
  • updated images hope these will clear confusions http://postimg.org/image/rmy1zqpyh/ http://postimg.org/image/zeduvm93j/ – user2034654 Mar 29 '14 at 10:26
  • Again he changing background color of tab area i want to change autohide area when windows are hide – user2034654 Mar 29 '14 at 11:46