PopupButton - InvalidateRequerySuggested

Ribbon for WPF Forum

Posted 8 years ago by Ray Huger
Version: 11.2.0550
Avatar
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 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
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 8 years ago by Ray Huger
Avatar
Good.
The latest build of this product (v2019.1 build 0684) was released 10 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.