【发布时间】:2016-07-24 16:51:27
【问题描述】:
我想将应用程序栏的背景颜色设置为蓝色。如何在 xamarin.forms 中进行设置?我是否必须为相同的方式编写本机代码?
【问题讨论】:
-
你看this question了吗?
-
您可能应该显示表单的代码
-
@ventiseis 是的,我已经检查过了,但这不是解决方案
我想将应用程序栏的背景颜色设置为蓝色。如何在 xamarin.forms 中进行设置?我是否必须为相同的方式编写本机代码?
【问题讨论】:
我自己找到了问题的答案。
在 MainPage.xaml 的原生 windows phone 8.1 应用程序中编写以下代码:
<Page.BottomAppBar>
<CommandBar Background="#0073b5" Foreground="White">
</CommandBar>
</Page.BottomAppBar>
【讨论】: