Apparently I'm not following correctly can you give me an example in xml?
I'm trying something like
<ribbon:Ribbon.ApplicationMenu>
<Grid>
<ribbon:ApplicationMenu x:Name="appMenu"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Disabled">
<!-- ApplicationMenu Exit Button -->
<ribbon:Button Command="commands:ApplicationCommands.ApplicationExit"
KeyTipAccessText="X"
Label="Exit">
<ribbon:Button.ImageSourceSmall>
<BitmapImage UriSource="pack://application:,,,/MHManager;component/Resources/Images/Close_Box_Red_16.png" />
</ribbon:Button.ImageSourceSmall>
</ribbon:Button>
</ribbon:ApplicationMenu>
<!-- BackStage menu here -->
<ribbon:Backstage x:Name="BackStageMenu"
ScrollViewer.HorizontalScrollBarVisibility="Disabled"
ScrollViewer.VerticalScrollBarVisibility="Disabled" >
<!-- NOTE: Put your own background watermark here -->
<ribbon:Backstage.Background>
<ImageBrush AlignmentX="Right"
AlignmentY="Bottom"
ImageSource="pack://application:,,,/MHManager;Component/Resources/Images/BackstageBackground.png"
Stretch="None"
TileMode="None" />
</ribbon:Backstage.Background>
</Grid>
</ribbon:Ribbon.ApplicationMenu>
Which is having both inside the Ribbon.ApplicationMenu.
I think I understand that I would just set which one the ribbon uses by setting the ApplicationMenu value to something like
ribbon.ApplicationMenu = Backstagemenu;
Which would represent the x:Name of the BackstageMenu
ribbon.ApplicationMenu = appMenu;
Would be the x:Name of the application Menu. Am I correct?
If so how do I create two separate menus? A style perhaps? could you point me to an example?
The code above gives me an error however. I know thats not the proper way.
[Modified 12 years ago]