5

In Office 2010 when a Backstage button is pressed the Backstage would automatically close. For example I have a Backstage with New, Open and Save buttons.

When I click on a button the Backstage is not being closed - I suppose that's not the correct behavior. How can I let Fluent-Ribbon handle the Backstage correct?

I'm using the current release 2.0 from november 2010 (http://fluent.codeplex.com/releases/view/55556).

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
nyn3x
  • 909
  • 1
  • 11
  • 28

2 Answers2

1

This seems to be a defect in the ribbon that is fixed in the latest version in sound control, but not yet in the latest released version.

For now you can work 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;
    }
}
Justin
  • 84,773
  • 49
  • 224
  • 367
  • Are there any plans for a new release? I don't feel like compile the source myself. – nyn3x Jun 13 '12 at 15:12
  • @nyn3x I don't have a clue (I'm not afiliated with the project), however you don't need to modify the Fluent source code to apply this fix - just apply it to your ribbon instance (where `myRibbon` is your ribbon instance) – Justin Jun 13 '12 at 15:16
1

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

TFD
  • 23,890
  • 2
  • 34
  • 51
  • 1
    Well, `Fluent:Button`also has a `IsDefinitive` attribut; but setting that to `true` doesn't seem to have any effect. – nyn3x Feb 24 '12 at 05:02