PopupButton - InvalidateRequerySuggested

Ribbon for WPF Forum

Posted 7 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 7 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 7 years ago by Ray Huger
Avatar
Good.
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.