PopupButton - InvalidateRequerySuggested

Ribbon for WPF Forum

Posted 9 years ago by Ray Huger
Version: 11.2.0550
My ribbon has a PopupButton with two commands. When either of the commands CanExecute the PopupButton is enabled. When conditions change that would make one of the commands have CanExecute true I call CommandManager.InvalidateRequerySuggested(). That does not cause the commands' CanExecuteRoutedEventHandlers to fire. Only when I change the SelectedTab for the ribbon do I get the button to enable.

Any suggestions?

Comments (2)

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

You can set a PopupButton.Command and tie it to a command whose CanExecute handler just returns whether at least one of the child commands can execute. That should govern the enabled state of the PopupButton.

Actipro Software Support

Posted 9 years ago by Ray Huger
The latest build of this product (v2020.1.1) 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.