I am using RibbonCommands in my Main window and the buttons of my Application Menu
use these Commands to figure out which text to set and icon, plus the Executed and CanExecute events. I am having trouble with CanExecute not firing when I select a new
section in my Main window. If I just click directly on a section and nothing else, my buttons in the Application Menu is still disables.
- However - If I click somewhere in the Main window, the buttons are activated, i.e. the CanExecute event is fired. I have set up my command bindings on the Main Window, so I guess this is to be expected. Question is, if I click on a section (I use Actipro Navigation to the left, just the module selector seen in Outlook 2007) directly without clicking on somewhere on the GUI, how do I get the buttons activated? I have tried CommandManager or focus trick programmatically. I don't seem to be able to send the event to the main window so the CanExecute can be launched...
Some info - I use WPF and .NET 3.5.1, Visual Studio 2008 and Actipro Ribbon and Navigation version 3.5 (latest patches applied), and Windows Vista Business.
Tore Aurstad,
Developer in Lydia Facility Management Systems,
Norway
use these Commands to figure out which text to set and icon, plus the Executed and CanExecute events. I am having trouble with CanExecute not firing when I select a new
section in my Main window. If I just click directly on a section and nothing else, my buttons in the Application Menu is still disables.
- However - If I click somewhere in the Main window, the buttons are activated, i.e. the CanExecute event is fired. I have set up my command bindings on the Main Window, so I guess this is to be expected. Question is, if I click on a section (I use Actipro Navigation to the left, just the module selector seen in Outlook 2007) directly without clicking on somewhere on the GUI, how do I get the buttons activated? I have tried CommandManager or focus trick programmatically. I don't seem to be able to send the event to the main window so the CanExecute can be launched...
Some info - I use WPF and .NET 3.5.1, Visual Studio 2008 and Actipro Ribbon and Navigation version 3.5 (latest patches applied), and Windows Vista Business.
Tore Aurstad,
Developer in Lydia Facility Management Systems,
Norway