This project is read-only.

switching between backstage tab and other tabs makes command get out of sync

Jan 10, 2011 at 11:41 AM

Hi All,

<CommandBinding x:Name="Edit" Command="local:AppCommands.CmdEdit" CanExecute="Edit_CanExecute" Executed="Edit_Executed"/>
<CommandBinding x:Name="Save" Command="local:AppCommands.CmdSave" CanExecute="Save_CanExecute" Executed="Save_Executed"/>

Example: I have three tabs: File (backstage), Home, Help...So I am in home, and both buttons,Edit and Save are enable.
I click in the File (backstage) tab, now i go back to the home by clicking in the home tab. The Edit and Save buttons appear as disable. 
I have to click in the ribbon area where the fluent buttons are to someone fire the wpf command manager. 
I have tried calling CommandManager.InvalidateRequerySuggested() in the Ribbon selected tab changed event to not avail.
If i switched between 'normal' tabs (home and help), then the wpf command manager seems to be evaluating the commands, it is just after clicking in the 
backstage tab. Any help will be apreciated it.