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?
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
I appreciate the answer, and it is working to hide the File tab; the only thing that I would like it to do further would be to move the other ribbon tabs left when the menu is missing, instead of having a gap there. Is this possible?