Backstage Close Button not showing

Ribbon for WPF Forum

Posted 11 years ago by Marc Ambrosius
Version: 12.2.0571


we are trying to build an application looking similar to Office 2013. We need a small help icon in the title bar and an application menu (backstage).

In one of your samples (ThemeSamples: MetroStyleWindow) we found a way to insert a button into the title bar. This works great. But if you click on the "File"-Tab to show the application menu, the menu is shown without a close button (circle with arrow) above.

Is there a better way to get the help button or a solution without the backstage close button diappearing?

Thanks in advance


Comments (2)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA

Hi Marc,

If you have one of our Metro themes active for your app (via ThemeManager.CurrentTheme), the backstage close button (circle with arrow) should be visible.  It will revert to the standard File button only if using a non-Metro theme.

If that doesn't help solve your question, then please make a new simple sample project that shows the issue and email that to our support address.  Reference this post and rename the .zip file extension so it doesn't get spam blocked.  Thanks!

Actipro Software Support

Posted 11 years ago by Marc Ambrosius

Just in case anyone else has this problem:

We got an answer from Actipro Support. Thank you very much!

The problem was that we were setting a WindowChrome instance on a RibbonWindow. The documentation on Window Chrome talks about not doing that because RibbonWindow already has a WindowChrome installed. You can get the existing instance of WindowChrome instead and use that.

After removing the WindowChrome from our XAML and putting the DataTemplate with an x:Key into Window.Resources, we had to do this at the end of our MainWindow constructor and it almost worked as we wanted:

WindowChrome.GetChrome(this).TitleBarContentTemplate = this.FindResource("HelpButtonTemplate") as DataTemplate;

Finally the graphical behaviour of the button (especially Foregorund and Background) was not as expected, so we had to style it with a DataTemplate.

The latest build of this product (v24.1.1) was released 2 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.