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
2009-08-16 00:03:20
+1
A:
You can also create a borderless window, and make the borders and title bar yourself
Thomas Levesque
2009-08-16 00:24:22
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
2009-08-16 11:59:49
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
2009-08-16 13:21:43
Marcel Benthin
2009-08-16 14:41:21