I'm seeing some very odd behavior with buttons in the application menu footer. When I register for the Click event, the buttons work fine. However, when I try to use a command, the button is enabled, but nothing happens in response to the click.
Here is the relevant code:
Creating the command:Creating the command binding:
In the XAML:
I've compared my code to the sample application closely, and as far as I can tell, I am not doing anything different. Any suggestions as to how I can get the footer buttons to work?
Thanks for your help
Scott Favre
Here is the relevant code:
Creating the command:
cmdExitApplication = new RibbonCommand(
CommandNames.ApplicationExit,
typeof(Ribbon),
"Exit");
CommandBinding cbndExitApplication = new CommandBinding(
Commands.ExitApplication,
OnExitApplication);
this.CommandBindings.Add(cbndExitApplication);
<ribbon:ApplicationMenu>
<!-- this button works -->
<ribbon:Button Command="{x:Static commands:Commands.ExitApplication}"/>
<ribbon:ApplicationMenu.FooterButtons>
<!-- this button works -->
<ribbon:Button Click="OnButtonClick"/>
<!-- this is enabled, but nothing happens when it is clicked -->
<ribbon:Button Command="{x:Static commands:Commands.ExitApplication}"/>
</ribbon:ApplicationMenu.FooterButtons>
</ribbon:ApplicationMenu>
Thanks for your help
Scott Favre