简体   繁体   中英

Windows store app: change background color of the Appbar

I have an Appbar on my app and the background is white, any ideas how I can change this? Here is my code:

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

This gives: 在此处输入图片说明

But I want to change it to this: 在此处输入图片说明

The AppBar has a Background property. Use that property to set the color, for example by using a resource.

<AppBar  Background="{StaticResource AppBarBackground}">

AppBarBackground could be SolidColorBrush

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM