开发者

Issue adding ribbon buttons directly to quick access toolbar

开发者 https://www.devze.com 2023-01-13 12:53 出处:网络
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 butto

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 bu开发者_开发百科tton, a visual representation of the issue and the associated CommandBindings for the RibbonBar:

Issue adding ribbon buttons directly to quick access toolbar

(link: http://i.stack.imgur.com/mV53U.png)

Any assistance with this issue would be greatly appreciated. This RibbonControlsLibrary.DLL is fairly new (released Aug. 2).


Does the CommandBinding_CanExecute return true? Otherwise the command cannot be executed, hence the buttons (ribbonbutton and qat button) are disabled.

0

精彩评论

暂无评论...
验证码 换一张
取 消