Quick Access Toolbar and adding disabled buttons problem

Ribbon for WPF Forum

Posted 14 years ago by wpf.acp
Version: 9.1.0507
Platform: .NET 3.5
Environment: Windows Vista (32-bit)
I have found a strange problem with Quick Access Toolbar. It appears as if adding ribbon buttons to QAT only works if a button is enabled. When disabled, a blank image is added to QAT. Clicking on a blank image shows the entire Group of controls in a popup.

Surely this can't be by design and is probably a bug.

A sample project is sent to your support email.

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA

Thank you for the bug report and sample application. The problem is that by default WPF will not show context menu's for disabled items. So really the context menu you are seeing is for the group, not the button. When you choose to add it to the QAT, it adds the group which doesn't have an image associated with it (so it displays as a box).

We've updated the base classes for our Ribbon controls to set ContextMenuService.ShowOnDisabled to true, by default. This works around this issue, since the context menu for the disabled button will be displayed.

This fix will be available in the next maintenance release. In the meantime, you could set ContextMenuService.ShowOnDisabled to true manually (either on each button or via an implicit Style).

Actipro Software Support

The latest build of this product (v24.1.2) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.