This project is read-only.

Routed UI Commands not firing on buttons in backstage groups?

May 13, 2013 at 5:59 AM
Edited May 13, 2013 at 6:00 AM
I've integrated the Fluent ribbon into my app, and all of the buttons on regular tabs are working great and firing my routed UI commands perfectly. Unfortunately the same buttons on the backstage aren't working. Here's the XAML snippet I'm using:
<Fluent:Backstage Header="{Binding FileTabLabel, Source={StaticResource Resources}}">
        <Fluent:Button Header="{Binding SaveCommandLabel, Source={StaticResource Resources}}" Command="ApplicationCommands.Save"/>
        <Fluent:Button Header="{Binding SaveAsCommandLabel, Source={StaticResource Resources}}" Command="ApplicationCommands.SaveAs"/>
        <Fluent:Button Header="{Binding OpenCommandLabel, Source={StaticResource Resources}}" Command="ApplicationCommands.Open"/>
None of the command handlers get fired when the buttons are clicked. Backstage just closes.

Is this a known issue? Or am I doing something wrong? Thanks!
May 18, 2013 at 2:55 PM
I will have a look at the project i am working at at work, as i'm pretty sure we are using some in the backstage and they work pretty well.
Aug 14, 2013 at 2:07 PM
Edited Aug 14, 2013 at 2:09 PM
I'm having the same issue.

I had to fix at as follow... but this is not elegant
<ResourceDictionary xmlns=""
    <DataTemplate DataType="{x:Type viewModels:MenuViewModel}">
                <fluent:Backstage >
                        <fluent:Button Icon="Images\Exit_small.png" Header="Exit" Height="40" Command="{Binding MenuControl.ExitCommand}"></fluent:Button>
Aug 14, 2013 at 2:20 PM
Woot.... fixed it likes this....
<fluent:Backstage >
                        <fluent:Button Icon="Images\Exit_small.png" Header="Exit" Height="40" Command="{Binding DataContext.ExitCommand, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type fluent:Ribbon}}}"></fluent:Button>