Ribbon hides but no tab activates

Aug 16, 2010 at 11:27 AM
Edited Aug 16, 2010 at 11:36 AM
I set up a very simple ribbon in xaml:
<Fluent:Ribbon x:Name="ribbon" IsBackstageOpen="True">
<Fluent:Ribbon.BackstageItems>
<Fluent:Button Text="Open" Icon="Images\Open.png" Command="{Binding OpenCommand}" />
</Fluent:Ribbon.BackstageItems>
</Fluent:Ribbon>

I then add other tabs in code:
var w = new Window();
w.Show();
var tab = new RibbonTabItem();
// ...
w.ribbon.Tabs.Add(tab);

The backstage menu should be visible initially, hence IsBackstageOpen="True" above.
But when the user clicks the "Open" button the backstage disappears, no tab is activated and the ribbon appears empty.

Is this a bug? Should I do something differently?

Aug 19, 2010 at 9:48 AM
Edited Aug 19, 2010 at 9:49 AM

I tried to work around this issue by setting IsBackstageOpen=true in code instead.

The following code has the same problem as described above:
var w = new Window();
w.ribbon.IsBackstageOpen = true;
w.Show();
w.ribbon.Tabs.Add(new RibbonTabItem());

While this reordering does not open the backstage at all:
var w = new Window();
w.Show();
w.ribbon.IsBackstageOpen = true;
w.ribbon.Tabs.Add(new RibbonTabItem());

Finally, moving the opening of the backstage to the very end seems to work:
var w = new Window();
w.Show();
w.ribbon.Tabs.Add(new RibbonTabItem());
w.ribbon.IsBackstageOpen = true;

(In my actual use case moving the line around like that is unfortunately not as simple as shown here, so I would still appreciate if this gets fixed.)

Coordinator
Aug 19, 2010 at 3:38 PM
If this issue is still imporatant for you, please, send me the repro project (with binaries) to davinci {at} mail {dot} ru. I will try to investigate...
Aug 20, 2010 at 8:16 AM

repro project sent.

Coordinator
Aug 21, 2010 at 8:54 AM

Thank you, I added a new issue http://fluent.codeplex.com/workitem/18532