更改所有页面的背景颜色 WP7 [英] Change Background Color For All Pages WP7

查看:27
本文介绍了更改所有页面的背景颜色 WP7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法改变所有页面的背景颜色?还是我只需要更改每个页面上的 LayoutRoot 颜色?

Is there a way to change the background color for all pages? Or do I just have to change the LayoutRoot color on every page?

推荐答案

你可以做的是创建一个应用背景颜色的样式,你仍然需要将样式应用到每个页面,但之后如果你需要制作更多更改,您只需要更改样式即可.

What you can do is create a Style that applies the Background Colour, you would still need to apply the style to each page, but afterwards if you need to make more changes you'll just need to alter the Style.

应用于页面的示例样式可以在 使用样式和资源来简化您的 xaml 虽然这不包括背景,但应该很容易理解.

An example style applied to a page can be seen at Using Styles and Resources to simplify your xaml while this doesn't include background it should be easy enough to follow.

这篇关于更改所有页面的背景颜色 WP7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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