WPF RibbonWindow + Windows 8 - control box looks bad

核能气质少年 提交于 2019-11-30 17:50:22

问题


I have a problem with WPF RibbonWindow and Windows 8. In older windows everything works fine, but on Windows 8 control box (minimalize, maximalize and exit buttons) looks terrible

I use RibbonControlLibrary from Microsoft (version from October 2010) XAML code is included http://pastebin.com/cNws0CGt (without irrelevant information, I hope I haven't deleted something important)

Expected output (Windows 7):


回答1:


What you're asking about is the window theme. The reason it is different in Windows 8 is because Windows 8 has a different default theme than Windows 7. To standardize this you will need to set an explicit theme for your project.

See here on how to explicitly set your theme.

More details on what themes are available in Windows 8 here.

Edit:

See here for details on why this isn't Windows 8 themed. It appears to be a bug that should have been fixed. Check your .net runtime version to make sure it is the latest.



来源:https://stackoverflow.com/questions/13741313/wpf-ribbonwindow-windows-8-control-box-looks-bad

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!