WPF功能区控制库 [英] WPF Ribbon Control Library

查看:116
本文介绍了WPF功能区控制库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用以下内容

Using the below

this.Resources.MergedDictionaries.Add(PopularApplicationSkins.Office2007Black);


抛出以下错误
类型或名称空间名称"PopularApplicationSkins"在名称空间"Microsoft.Windows.Controls.Ribbon"中不存在


throws below error
The type or namespace name ''PopularApplicationSkins'' does not exist in the namespace ''Microsoft.Windows.Controls.Ribbon''

推荐答案

检查功能区的版本图书馆.如果您使用的是2010年或更高版本,则主题将不再出现在名称空间中,功能区也不再支持主题. MSDN的参考文档不再引用功能区文档中的主题.

我认为唯一的解决方法是第三方功能区控件,它确实支持主题或覆盖默认样式并在xaml中定义主题.
Check your version of the Ribbon library. If you are using a version from 2010 or later, the themes are no longer present in the namespace nor does the ribbon support the themes anymore. MSDN''s reference documentation no longer references the themes in the Ribbon''s documentation.

I believe the only workaround is a third-party ribbon control that does support themes or to override the default style and define the theme in xaml.


这篇关于WPF功能区控制库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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