Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the Title bar background color in Xamarin.Forms wpf application?

I am doing an application in wpf with xamarin.forms in which i need to change the title bar background color to mach with our theme.But by default a blue color background is appearing.Can anyone please help and guide me to resolve this issue.

like image 348
Praveen Baruri Avatar asked Jul 28 '18 03:07

Praveen Baruri


1 Answers

You have to add these 2 keys in App.xaml:

<Application.Resources>
...
      <SolidColorBrush x:Key="CommandBarBackgroundColor" Color="Orange" />
      <SolidColorBrush x:Key="CommandBarTextColor" Color="Blue" />
...
<Application.Resources>
like image 133
Poppyto Avatar answered Nov 15 '22 07:11

Poppyto