Search code examples
xamarinxamarin.windows

How to set background color of toolbar in windows phone using xamarin.forms?


I want to set the background color of the application bar blue.how can i do it in xamarin.forms? Do I have to write the native code for the same how to do that?


Solution

  • I found the answer of my question myself. In the native windows phone 8.1 app in MainPage.xaml write the following code:

    <Page.BottomAppBar>
        <CommandBar Background="#0073b5" Foreground="White">
    
        </CommandBar>
    </Page.BottomAppBar>