Loose Ribbon: Backstage Button Does Not Close Backstage

In Office 2010, when you click the Backstage button, the Backstage automatically closes. For example, I have a Backstage with New, Open, and Save buttons.

When I click on the button, the backstage does not close - I believe that this is the wrong behavior. How can I let Fluent-Ribbon handle backstage correctly?

I have been using the current version 2.0 since November 2010 ( http://fluent.codeplex.com/releases/view/55556 ).

+4
source share
2 answers

This is apparently a tape defect that has been fixed in the latest version in sound control, but not yet in the latest released version.

Now you can get around this using the following

// During initialisation myRibbon.Menu.AddHandler(PopupService.DismissPopupEvent, (DismissPopupEventHandler)OnPopupDismiss); private void OnPopupDismiss(object sender, DismissPopupEventArgs e) { var backstage = Menu as Backstage; if (backstage != null) { backstage.IsOpen = false; } } 
+1
source

In Ribbon.xml, the required attribute isDefinitive=""true"" not sure how Fluent-Ribbon handles this, but should have an equivalent

+1
source

Source: https://habr.com/ru/post/1395731/


All Articles