berry wer
berry wer

Reputation: 647

Mahapps Custom title bar color

Currently i am using <ResourceDictionary Source="pack://application:,,,/MahApps.Metro;component/Styles/Accents/BaseLight.xaml" />

And this is the result:

enter image description here

I also found this supported colors: https://github.com/MahApps/MahApps.Metro/tree/master/MahApps.Metro/Styles/Accents

But i cannot find the Gray color that i want to change into. Any idea how to change to custom color ?

Upvotes: 10

Views: 12330

Answers (1)

punker76
punker76

Reputation: 14611

You can set the title brush to whatever you want by setting WindowTitleBrush="Chocolate"

<Controls:MetroWindow x:Class="MetroDemo.MainWindow"
                      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                      xmlns:MetroDemo="clr-namespace:MetroDemo"
                      Title="MahApps.Metro - Demo Application"
                      WindowTitleBrush="Chocolate">
</Controls:MetroWindow>

Hope this helps!

Upvotes: 34

Related Questions