[WP8.1] [Xaml]覆盖主题画笔以创建自定义主题 [英] [WP8.1][Xaml]Override theme brushes to create custom theme

查看:56
本文介绍了[WP8.1] [Xaml]覆盖主题画笔以创建自定义主题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

 

我想覆盖默认主题中的颜色,将每个页面的appbar背景设为红色。

I want to override the colors in default theme, make every page's appbar background red.

之后在网上搜索,我得到的方法在App.xaml中添加一行如下图所示。

After searching the net, I get the method add some line in App.xaml as the picture below.

但是它不起作用,它们仍然是黑色的。

But it didn't work, they are still black.

任何人都可以帮助我吗?

Can anyone help me?

谢谢!

推荐答案

HI

在你的app.xaml声明这个 

declare this in your app.xaml 

并将其应用于appbar样式

and apply it on the appbar style

Style =" {StaticResource AppBarThemeStyle}">

Style="{StaticResource AppBarThemeStyle}">

问候


这篇关于[WP8.1] [Xaml]覆盖主题画笔以创建自定义主题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆