Hi there,
There are couple of queries regarding the XamRibbon which we want to
1- We have defined the short Cut Key for the commands in application Menu and they are working all well but we been unable to show to the user whihc short cut key is applicable to each command. e.g Ctrl + S is for save. We want to show this command as Save rather than Ctrl + S. How do we carry out this step. How do we incorporate the character '&' for showing short cutkey for a command. Followig is the code snippet for menu items.
<igRibbon:ApplicationMenu.Items><igRibbon:ButtonTool x:Uid="igRibbon:ButtonTool_1" Caption="Save Layout" Click="ButtonSave_Click" LargeImage="Resources\Images\File_Save.png"/><igRibbon:ButtonTool x:Uid="igRibbon:ButtonTool_2" Caption="Save Layout As" Click="ButtonSaveAs_Click" LargeImage="Resources\Images\File_Save.png" /> </igRibbon:ApplicationMenu.Items>
2- Instead of loading png image files we want to load the xaml icons. We can easily load the xaml icon and the label in our defined button and load the buttonto the Group but this doesn't give us the desired flexibility as provided by the buttontool. Is there a way to load xaml icon into the buttontool?
3- Is there a way that we can decrease or increase the size of the XamRibbon
4- We don't want to display the Quick Access Toolbar and we have set its visibility to collapsed/hidden. We also don't want to show the QAT entris in the context menu which is there when the user right clicks on any group or Tab Item. How do we hide the QAT stuff in the Context Menu?
5- What if we want to embed the Application Menu button and the QAT on each of our individual control window. Is that feasible and advisable?
Thanks in advance for your feedback
Ferhaad
1- If you mean display a mnemonic - which is different then a shortcut - then you would preceed the letter in the caption with an underscore. "_Save". Note: Mnemonics will only show within menus - never for a tool on the ribbon group.
2 - The LargeImage/SmallImage properties are of type ImageSource so your xaml icon would likely be a DrawingImage.
3 - I'm not sure what aspect of the size you are referring to. Can you provide more details as to what you are trying to do?
4 - The QAT is a required aspect of the Ribbon interface as set forth in MS Office UI guidelines so its not recommended that you try and hide that. Also mentioned in that document is that right clicking on a tool must provide the option to add it to the qat. The ribbon will always create a context menu for a tool unless its ContentMenu property was set to a context menu or as a local value to null.
5 - I'm not sure in what context you are referring to using these but the ApplicationMenu and QAT are not designed to be used outside of the ribbon.
I want to remove the context menu from the ribbon (using v 9.2), and I tried setting:
1)
ContextMenu
for XamRibbon and RibbonTabItem
2) also set
MouseButtonEventArgs.Handled to true under the
MouseRightButtonDown event
But none of these workaround works. Please provide a way to hide the context menu, thanks
It would be best if you created a new post as this doesn't really relate to the existing post. The xamRibbon handles the ContextMenuOpening and dynamically creates a context menu for the RibbonTabItem, RibbonGroup, XamTabControl (the part of the ribbon that displays the tabs), the qat, a toolmenuitem or a ribbon tool. If you don't want a ContextMenu for any of those things you would either need to set the ContextMenu property to x:Null for all of those things or you would need to handle the ContextMenuOpening closer to the source and set e.Handled to true - depending on how you do this though you may not get a context menu for anything you put in the ribbon - ours or otherwise.