Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

How to change Navigation Bar Color

$
0
0

Here is my code:

public partial class MainPage : MasterDetailPage
{
        public MainPage()
        {
                Detail = new NavigationPage(new RootPage());
        }
}

<?xml version="1.0" encoding="UTF-8"?>
<ContentPage Title="Root" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="my.RootPage">
    <ContentPage.ToolbarItems>
        <ToolbarItem   Name="Refresh" Icon="" Activated="OnRefresh" />
    </ContentPage.ToolbarItems>

    <ContentPage.Content >
        <StackLayout >
            ...
        </StackLayout>
    </ContentPage.Content>
</ContentPage>

How do i change so that I can change the Page's background color including the Toolbar as well?


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>