Search code examples
wpftitlebarmahapps.metro

Mahapps title bar change color when application lost focus


I define Title bar color:

<Controls:MetroWindow
...

WindowTitleBrush="Red"

But when the application lost focus this color always changed into Gray, is it possible to stop it ?


Solution

  • Use the property NonActiveWindowTitleBrush on the Metro Window. This is assuming that you are using a newer version of MahappsMetro.