Wpf Ribbon

Jan 21, 2011 at 9:41 AM

 

In our application all RibbonButton are disabled in some particular situations
but we don't understant the reason.
The CanExecute is correct and it works but it seems, in this particular condition, it isn't called at all.

Is there any method to force the CanExecute action ?

Thank you very much
Marco

 

Jan 22, 2011 at 5:13 PM

Hi Marco,

You can call:

CommandManager.InvalidateRequerySuggested();

 This will make all the canexecutes to reevaluated themselves.

Hope it helps