【问题标题】:Windows store app: change background color of the AppbarWindows 商店应用程序:更改 Appbar 的背景颜色
【发布时间】:2013-04-15 08:06:52
【问题描述】:

我的应用上有一个 Appbar,背景是白色的,有什么想法可以改变它吗? 这是我的代码:

 <AppBar>
     <Button       
    Style="{StaticResource HomeAppBarButtonStyle}" /> 
  </AppBar>

这给出:

但我想改成这样:

【问题讨论】:

    标签: c# xaml windows-8 windows-runtime windows-store-apps


    【解决方案1】:

    AppBar 有一个Background 属性。使用该属性设置颜色,例如使用资源。

    <AppBar  Background="{StaticResource AppBarBackground}">
    

    AppBarBackground 可以是 SolidColorBrush

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-10-16
      • 1970-01-01
      相关资源
      最近更新 更多