WPF应用程序和Vista高对比度模式。 [英] WPF applications and Vista High Contrast mode.

查看:154
本文介绍了WPF应用程序和Vista高对比度模式。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我一直在阅读非常有用和全面的 Vista UX指南和字体部分中说明了相当明显的(但我自己忽略了)"始终使用系统字体,大小和颜色来尊重用户的设置。"

我的WPF应用程序(和Expression Blend& Design)对系统字体大小的变化作出反应,但是如果你切换到高对比度模式(左Alt +左​​SHIFT +打印屏幕(在Vista中)),那么我们看起来漂亮的WPF应用程序'更改以反映用户的请求。

当然,如果我们坚持使用SystemColors,那么应用程序将在高对比度模式下正常运行,但随后我们将看到他们的应用程序看起来像是已经构建在Win Forms中。 Office 2007设法使用不在SystemColors中但仍然处理高对比度模式的颜色,而且我很快就会猜测我们的客户会从我们的应用程序中得到相同的结果。

有没有属性我可以检查模板的触发器,它会告诉我用户是否处于高对比度模式,这样我可以切换到使用SystemColors?

你有没有看过Blend对高对比度模式的反应? >
干杯
Ben

解决方案

WPF HighContrast: 

http://mambycamara.wordpress.com/2008/07/05/wpf-highcontrast-高对比度,支撑带 - 窗口呈现-基础/

Hi,

I've been reading through the very useful and comprehensive Vista UX Guide and in the Fonts section it states the fairly obvious (but so far ignored by myself) "Respect the user’s settings by always using the system font, sizes, and colors."

My WPF applications (and Expression Blend & Design) react to a change in the system Font size but if you switch to the High Contrast mode (left Alt + left SHIFT + Print Screen (in Vista)) then our pretty looking WPF applications don't change to reflect the user's request.

Of course if we stick to using the SystemColors then the application will act appropriately in High Contrast mode but then we'll end up with our apps looking like they've been built in Win Forms.  Office 2007 manages to use colours that aren't in the SystemColors but still handle the High Contrast Mode and I'm guessing at some point soon our customers will expect the same from our apps.

Is there a property I can check in a Template's trigger that will tell me if the user is in High Contrast mode so I can switch to using the SystemColors?

Have you looked into how Blend reacts with respect to the High Contrast mode?

Cheers
Ben

解决方案

WPF HighContrast: 
http://mambycamara.wordpress.com/2008/07/05/wpf-highcontrast-high-contrast-support-with-windows-presentation-foundation/


这篇关于WPF应用程序和Vista高对比度模式。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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