We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How I can change styles?

Hello.
How I can change the header's color on my page?
I set BackgroundColor and BackgroundImage but my header is blue :(

Screen:


My code in XAML:


And I tried this case:


3 Replies

BK Bharathiraja K Syncfusion Team February 8, 2019 06:19 AM UTC

Hi Sergey, 
 
Greetings from Syncfusion, As mentioned in our UG, your requirement of customizing the background color for the header can be achieved by setting the BarBackgroundColor property of the NavigationPage. 
 
It can be set in the required backdrop page or in the App.Xaml file as mentioned below, 
<!--In App.xaml --> 
 
    <Application.Resources> 
        <Style TargetType="NavigationPage"> 
            <Setter Property="BarBackgroundColor" Value="Black"></Setter> 
            <Setter Property="BarTextColor" Value="Violet"></Setter> 
        </Style> 
    </Application.Resources> 
 
 
 
Thanks, 
Bharathiraja. 



CE Cepega February 8, 2019 07:20 AM UTC

It works. Thank you for help.


BK Bharathiraja K Syncfusion Team February 8, 2019 07:28 AM UTC

Hi Sergey,  
 
We glad that the reported problem resolved at your end.  
 
Thanks, 
Bharathiraja. 


Loader.
Up arrow icon