Microsoft Ribbon for WPF: ribbon:RibbonApplicationMenu issue

3.9k Views Asked by At

Using the excellent Microsoft Ribbon for WPF for .NET 4 (not the .NET 4.5 build in class) I'm trying to achieve a ribbon like in Office 2010:

Office 2010 Ribbon

However I cannot get the File text to be shown on the ribbon:RibbonApplicationMenu.

If I change the project Wizard generated code from

<ribbon:RibbonApplicationMenu SmallImageSource="Resources\SmallIcon.png">

to

<ribbon:RibbonApplicationMenu KeyTipService.KeyTip="F" Label="File">

I get this:

My Ribbon

Notice that the text File is not shown. What am I missing?

2

There are 2 best solutions below

0
On BEST ANSWER

Looks like you will have to use GlyphRun to display custom text in the head of RibbonApplicationMenu. Please refer to the accepted answer on thread How to set text at the head of a RibbonApplicationMenu

0
On

Microsoft needs to fix this. It should work by just setting the "Label" as you described.

EDIT:

I just realized that Microsoft isn't even using the RibbonApplicationMenu...

Look at the following images again:

Office 2010 Ribbon

My Ribbon

Microsoft Word is using just a Tab, and turning it blue! (something i haven't figured out how to do) They really should fix this!

Also, I noticed that Microsoft's blog on the topic just uses Icons: http://blogs.msdn.com/b/wpf/archive/2010/08/03/introducing-microsoft-ribbon-for-wpf.aspx