Hi,
We are using serveal MenuTool in our header area to provide menus. While tabbing between these menus I am not visually seeing the item meu getting selected. Is there any property which I should set inorder to see the selection change? all these menutools are kept under a toolbartray.
Thanks,
Praneesh
Can someone help me to solve this issue?
Hello Praneesh,
I have been looking into your questions and I am not sure that I understand your scenario. Would you provide me with a screenshot of your XamRibbon and highlight the MenuTools that you are referring.
Thanks in advance.
I have attached a sample application which demonstrate the issue. Please run the application and select TAB key and notice that the focus doesn’t reflect on the green button (add) even though it holds the focus. The button next to it got highlighted in focus. How do I highlight the first button also on go focus?
Second issue: The green button has submenus and each submenu has Hot keys associated with them. Pull down the menu and press “R” and notice that nothing happens.
Thank you for the sample. I have been looking into it and I noticed that one of your buttons is from type MenuTool and the other is simple Button. By default our MenuTool is design to work with the XamRibbon control and it is not design to receive the focus when you tab over it- currently this is the default behavior of the control.
Regarding your second issue: the reason ‘R’ shortcut doesn’t execute anything is because in your case you create child menuItem inside the “_Recent”. In this case you can notice that even clicking over the button will not fire the attached command because the menu tool should only expand the child items. Therefore if you want to enable the shortcut you can attach it to a toolMenuItem that doesn’t have children. For example if you try the following code snippet the ‘R’ shortcut will cut any selected text:
Please let me know if you have any additional questions with this matter.
<igRibbon:MenuTool Name="_AddButton" ButtonType="Segmented" SmallImage="tick.png" IsEnabled="True"> <igRibbon:ToolMenuItem Name="RecentSearchesMenu" Command="Cut" Header="_Recent"> </igRibbon:ToolMenuItem> <igRibbon:ToolMenuItem Name="QuickSearchesMenu" Header="_Quick Searches"/> </igRibbon:MenuTool>
Hello Elena,
Thanks for your time and answer. I agree that Menutool is designed to use in xamribbon and it doesnt require any focus. Is there any work arround in my case where it reflect the focus?
I still find second issue bit a strage becuase the short cut key 'R" should expand the child collection as it happens in MS office or outlook. The sub menu will have commands associated with different short kut keys.
We are still following this forum thread.
If you have any other questions or concerns about this matter please do not hesitate to contact us.