Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
289
Queries regarding XamRibbon
posted

 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 

 

Parents
  • 54937
    Offline posted

    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.

Reply Children