Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Main Window title bar color change in wpf

Tags:

wpf

I want the color of title bar to be changed from green to red in wpf. How can I do it??

Like this -

[

like image 959
ankita kumari Avatar asked May 05 '16 10:05

ankita kumari


1 Answers

Title bar is not a client area and hence is not available for editing as such. You can though set WindowStyle="None" and then add a custom border around your window.

Make sure you add Close Maximize and Minimize buttons to it.

And if you are using .net 4.5 WindowChrome can be useful as well

like image 158
Muds Avatar answered Sep 23 '22 20:09

Muds