Quick Access button excessively fires Command.CanExecute

Ribbon for WPF Forum

Posted 9 years ago by Jon Cain - Software Architect, AutoMon Corporation
Version: 9.1.0507
Avatar
I have 2 Save buttons. One in the quick access toolbar and the other in the ribbon inside a RibbonGroup. After opening the window (RibbonWindow), CanExecute fires on the Save command 27 times. 3 times for the standard ribbon button and 24 times for the quick access button. This behavior seems like a bug. Is that correct?

Comments (2)

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jon,

Can you make a simple sample project that shows this happening and email it over? Are you sure it's our code that is triggering the CanExecutes? I believe those generally fire in response to the CommandManager's request.


Actipro Software Support

Posted 9 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Jon,

Thanks for the sample, it seems to be caused by CommandManager keeping track of some refs in its weak ref manager that we detached from already. We're changed some of our code with our QAT items updating that helps to work around this. Now with your sample and this change, the QAT item fires the same or less than the other button. This change will be in v2010.1.


Actipro Software Support

The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.