I would like to associate a Keyword Shortcut to the ApplicationMenuItem like you can associate with a Button.
If we would do:
<igRibbon:ButtonTool Name="test" Caption="T_est" Command="{Binding MyCommand}"/>
That Button gets the "Alt+E" shortcut associated. By simply adding an Underscore to the Caption of the Button.
How can we accomplish the same with the ApplicationMenu2010Item, but when we do:
<igRibbon:ApplicationMenu2010Item Name="test" Header="T_est" Command="{Binding MyCommand}" ></igRibbon:ApplicationMenu2010Item>
The Application shows the text of the item with the underscore. Although It seems that it does assign the shortcut.
What is the correct way to achieve what we want?
Hello,
Thank you for your post. I have been looking into the functionality that you are trying to achieve and what I can suggest is using key tips for the ApplicationMenu2010Item. The ApplicationMenu2010Item provides a KeyTip to property and when that property is set and you press the Alt key while the menu is the key tips are appearing and you can execute the command on the menu item by pressing the key of the KeyTip. You can read more detailed information regarding the KeyTips to the Application 2010 Menu here: http://help.infragistics.com/NetAdvantage/WPF/current/CLR4.0/?page=xamRibbon_ApplicationMenu2010KeyTips.html. Also I have created a sample application for you, that shows how you can use the key tips.
Please let me know if you need any further assistance on the matter.
Sincerely,
Krasimir
Developer Support Engineer
Infragistics
www.infragistics.com/support
Hi Krasimir,
That worked great! I was searching for something like that but I could not find it. However my issue it is a bit more complicated. We thought we could solve it with the approach I was taking in my first post but that is not the case.
Basically I would like the ApplicationMenu2010Item to be a Quick Access Menu Item too, but I could not find a property to that effect.
So we were doing something like this:
<igRibbon:ApplicationMenu2010Item Name="test" Header="T_est" Command="{Binding MyCommand}" > <igRibbon:ApplicationMenu2010Item.Header> <igRibbon:ButtonTool Name="test" Caption="T_est" IsQatCommonTool="True" Command="{Binding MyCommand}"/> </igRibbon:ApplicationMenu2010Item.Header></igRibbon:ApplicationMenu2010Item>
This works, we get the KeyTip by using the underscore and the button is part of the QuickAccess Bar, but when the button is disabled you can still click on it. It doesnt run the action, it just hides the Backstage.
I don't konw what is the best way to go about all this, what would you recommend?
I am adding a Zip which has 3 images showing you the issues we are having:
Additionally I updated the sample solution you provided me to show you the issues I am talking about. There is a backstage item "Toggle Test" that enables and disables the "Test" item of The backstage.
Thanks in advance!