简体   繁体   中英

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?

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM