【问题标题】:How to set background color of toolbar in windows phone using xamarin.forms?如何使用 xamarin.forms 在 windows phone 中设置工具栏的背景颜色?
【发布时间】:2016-07-24 16:51:27
【问题描述】:

我想将应用程序栏的背景颜色设置为蓝色。如何在 xamarin.forms 中进行设置?我是否必须为相同的方式编写本机代码?

【问题讨论】:

  • 你看this question了吗?
  • 您可能应该显示表单的代码
  • @ventiseis 是的,我已经检查过了,但这不是解决方案

标签: xamarin xamarin.windows


【解决方案1】:

我自己找到了问题的答案。 在 MainPage.xaml 的原生 windows phone 8.1 应用程序中编写以下代码:

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

    </CommandBar>
</Page.BottomAppBar>

【讨论】:

  • 是不是少了什么东西?
  • 完整的代码没有出现它的
猜你喜欢
  • 2016-03-08
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-06-02
  • 1970-01-01
  • 2016-01-25
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多