【问题标题】:How to change the Title bar background color in Xamarin.Forms wpf application?如何更改 Xamarin.Forms wpf 应用程序中的标题栏背景颜色?
【发布时间】:2018-07-28 03:38:25
【问题描述】:

我正在使用 xamarin.forms 在 wpf 中做一个应用程序,其中我需要将标题栏背景颜色更改为与我们的主题匹配的颜色。但默认情况下会出现蓝色背景。任何人都可以帮助并指导我解决这个问题。

【问题讨论】:

标签: wpf xamarin.forms


【解决方案1】:

您必须在 App.xaml 中添加这两个键:

<Application.Resources>
...
      <SolidColorBrush x:Key="CommandBarBackgroundColor" Color="Orange" />
      <SolidColorBrush x:Key="CommandBarTextColor" Color="Blue" />
...
<Application.Resources>

【讨论】:

  • 谢谢!这正是我想要的!
猜你喜欢
  • 2010-11-19
  • 2021-04-02
  • 2019-08-10
  • 1970-01-01
  • 1970-01-01
  • 2019-01-15
  • 2015-01-29
  • 1970-01-01
  • 2017-04-22
相关资源
最近更新 更多