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
960
How to Add ApplicationMenu2010Item to the QuickAccessToolbar
posted

Hi, As I say in the subject I want to add to the QuickAccessToolbar An OpenSomething and a CloseSomething that is made as follows:

<igr:ApplicationMenu2010Item KeyTip="O" 														 
	 Image="..."
	 Command="{x:Static lcmd:MyCommand.Open}">
	<igr:ApplicationMenu2010Item.Header>
	<TextBlock Margin="5,0,0,0"
           Text="Open" />
	</igr:ApplicationMenu2010Item.Header>
</igr:ApplicationMenu2010Item>

Usually to add a ribbon tool to the QUickaccess toolbar you have to write this

<igr:QatPlaceholderTool TargetId="openTool"/>

The Problem is that the ID or Id attribute is not applicable to the ApplicationMenu2010Item so I wanted to understand what should be modified to be able to use the Application menu Item in the QUickAccess toolbar.

Thank you in advance

Parents
No Data
Reply
  • 54937
    Verified Answer
    Offline posted

    ApplicationMenu2010Item is only allowed/used within the ApplicationMenu2010. If you want to put a tool into the QAT that isn't displayed within a RibbonGroup, MenuTool, etc. then you can define the tool within the ToolsNotInRibbon and then you can define the QatPlaceholderTool as you would for other tools.

    e.g.

    <igRibbon:XamRibbon.ToolsNotInRibbon>
      <igRibbon:ButtonTool
        Id="openTool"
        Command="ApplicationCommands.Copy"
        Caption="Open"
        SmallImage="Images\16x16.png" />
    </igRibbon:XamRibbon.ToolsNotInRibbon>

Children