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
1385
Hide application menu tab
posted

I have the situation where my application can run in standalone mode, or it can be used from another application via an interface.  In the first case I want the application menu (File) tab to show in the interface, and not in the second.

I am using 14.1 with the Office 2013 theme and the ApplicationMenu2010 menu.  If I set the application menu visibility to collapsed or hidden, then the menu won't appear when clicked but the tab remains.

Is there a way to hide the tab?

Parents
No Data
Reply
  • 30945
    Offline posted

    Hello Walter,

     

    Thank you for your post. I have been looking into the question that you are having and you can control the visibility of the application menu tab, by creating a style for ApplicationMenu2010FileTab and adding a setter for its Visibility property. Since you are using a theme, you should add the style in the Resources of the XamRibbon and also, the style should have its BasedOn set to RibbonOffice2013.ApplicationMenu2010FileTab, in order to keep the appearance of the file tab consistent with the Office 2013 theme. I have create a sample application that shows how you can bind the Visibility of the Application2010FileTab to the Tag of the XamRibbon, in order to be able to dynamically change the visibility of the file tab without changing the style.

     

    Please let me know if you need any further assistance on the matter.

     

    Sincerely,

    Krasimir, MCPD

    Developer Support Supervisor - XAML

    Infragistics

    www.infragistics.com/support

    ApplicaitonMenuVisibility.zip
Children