5

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

Like this -

[

Muds
  • 4,006
  • 5
  • 31
  • 53
ankita kumari
  • 185
  • 1
  • 3
  • 16
  • Possible duplicate of [Changing WPF title bar background color](https://stackoverflow.com/questions/1283006/changing-wpf-title-bar-background-color) – StayOnTarget Jul 24 '19 at 19:14

1 Answers1

7

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

Muds
  • 4,006
  • 5
  • 31
  • 53