为什么没有WPF的Windows显示在Windows 8中8式按键 [英] Why doesn't WPF show Windows 8 style buttons in Windows 8

查看:100
本文介绍了为什么没有WPF的Windows显示在Windows 8中8式按键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是Windows 8风格的按钮:

This is a Windows 8 style button:

这是在.NET 4.5 WPF应用程序的按钮:

And this is a button in .NET 4.5 WPF app:

任何想法,为什么WPF不显示本机Windows 8风格的按钮?有没有办法来解决这个问题?

Any ideas why WPF doesn't show the native Windows 8 style buttons? Is there a way to fix this?

推荐答案

你可以做的是使用自定义的WPF的造型从的这里

What you can do is use a custom WPF styling from HERE.

下面是适用于在多个国家相同的WPF应用程序的风格截图。顶部明明是航空为主题的,底部是一组与新应用的样式。

Below is a screenshot of the styles as applied to the same WPF application in multiple states. The top is obviously Aero themed, and the bottom set is with the newly applied styles.

这是对的 XAML

这篇关于为什么没有WPF的Windows显示在Windows 8中8式按键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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