tags:

views:

1051

answers:

2

I have a WPF windows application. I need to change the background color of the title bar. How can I do that?

+2  A: 

In WPF the titlebar is part of the non-client area, which can't be modified through the WPF window class. You need to manipulate the Win32 handles(if I remember correctly).
This article could be helpful for you: Custom Window Chrome in WPF.

Marcel Benthin
+1  A: 

You can also create a borderless window, and make the borders and title bar yourself

Thomas Levesque
But then you have to build all taskbar functionalities yourself(like moving, maximize/restore size on double click, close on double click the icon, ...).
Marcel Benthin
yes... but it's no big deal, for instance the DragMove method makes it easy to handlo moving, and the rest is peace of cake ;)
Thomas Levesque
Marcel Benthin