直接将功能区按钮添加到快速访问工具栏的问题
我正在尝试使用 CanAddToQuickAccessToolBarDirectly 属性将功能区按钮直接添加到快速访问工具栏。我已阅读为了执行此操作,必须在此源的按钮上启用命令(http://blogs.msdn.com/b/llobo/archive/2010/08/06/wpf-ribbon-basics.aspx#comments) 。当我向按钮添加命令时,它会被禁用(灰显)。
下面是与按钮关联的 XAML 代码片段、问题的可视化表示以及 RibbonBar 的关联 CommandBindings:
(链接:https://i.sstatic.net/mV53U.png)
任何帮助这个问题将不胜感激。这个 RibbonControlsLibrary.DLL 相当新(8 月 2 日发布)。
I am trying to add a Ribbon Button directly to the Quick Access Toolbar by using the CanAddToQuickAccessToolBarDirectly property. I have read in order to do this a command must be enabled on the button from this source (http://blogs.msdn.com/b/llobo/archive/2010/08/06/wpf-ribbon-basics.aspx#comments). When I add a command to the button it becomes disabled (grayed out).
Below is the XAML code snippet associated with the button, a visual representation of the issue and the associated CommandBindings for the RibbonBar:
(link: https://i.sstatic.net/mV53U.png)
Any assistance with this issue would be greatly appreciated. This RibbonControlsLibrary.DLL is fairly new (released Aug. 2).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CommandBinding_CanExecute 返回 true 吗?否则该命令无法执行,因此按钮(ribbonbutton 和 qat 按钮)被禁用。
Does the CommandBinding_CanExecute return true? Otherwise the command cannot be executed, hence the buttons (ribbonbutton and qat button) are disabled.