如何使用 xamarin.forms 在 windows phone 中设置工具栏的背景颜色?
How to set background color of toolbar in windows phone using xamarin.forms?
我想设置应用栏的背景颜色blue.how我可以在xamarin.forms中设置吗?我是否必须为此编写本机代码才能做到这一点?
我自己找到了问题的答案。
在原生windowsphone8.1 app中MainPage.xaml
写入如下代码:
<Page.BottomAppBar>
<CommandBar Background="#0073b5" Foreground="White">
</CommandBar>
</Page.BottomAppBar>
我想设置应用栏的背景颜色blue.how我可以在xamarin.forms中设置吗?我是否必须为此编写本机代码才能做到这一点?
我自己找到了问题的答案。
在原生windowsphone8.1 app中MainPage.xaml
写入如下代码:
<Page.BottomAppBar>
<CommandBar Background="#0073b5" Foreground="White">
</CommandBar>
</Page.BottomAppBar>