Windows 8 主题颜色 - 以编程方式访问它 [英] Windows 8 theme color - accessing it programmatically

查看:28
本文介绍了Windows 8 主题颜色 - 以编程方式访问它的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Windows 8 消费者预览版中,您可以个性化您的体验,包括设置背景颜色",然后将其用作所选磁贴、应用栏等的背景.因此,选择橙色将意味着在 Windows 中可以看到橙色调8 地铁界面.

In windows 8 consumer preview you can personalize your experience, including setting a 'background color' which is then also used as the background for selected tiles, app bar etc. So selecting orange will mean that orange accents are visible in the Windows 8 Metro UI.

我目前正在创作一些自定义控件,我想在我的样式中使用这种颜色,以便在用户更改颜色时相应地重新着色我的应用程序口音.

I am currently authoring some custom controls, and I would like to have access to this color in my styling, so as the user changes color so my applications accents are re-colored accordingly.

我找不到在我的 XAML 中获得这种颜色的方法.有一个系统级动态画笔或颜色资源可供您参考,这似乎是合理的.

I cannot find a way of getting at this color in my XAML. It seems reasonable to expect that there is a system-level dynamic brush or color resource that you could reference.

有人有什么想法吗?

推荐答案

基于 此主题(开始屏幕背景作为我的 Metro 应用背景) 在 MSDN 上 - 这不可用.

Based on this thread (Start Screen background as my metro apps background) on MSDN - this is not available.

万一MSDN线程消失,站点暂时不可用,或者微软移动目录结构并在各处留下孤立链接:相关答案,来自微软员工Rob Kaplan,说:

In case the MSDN thread disappears, the site is temporarily unavailable, or Microsoft moves the directory structure around and leaves orphaned links all over the place: The relevant answer there, from Microsoft employee Rob Kaplan, said:

Metro 风格的应用无法查询开始屏幕背景颜色.

Metro style apps cannot query the start screen background color.

因此可以理解为官方对此功能不可用的回应.

So it can be construed as an official response that this functionality is unavailable.

这篇关于Windows 8 主题颜色 - 以编程方式访问它的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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