Ribbon Content Size

Ribbon for WPF Forum

Posted 14 years ago by Mick
Version: 11.1.0542
Avatar
I'm trying to match the Office2010 look and feel out of the box, but when I create a ribbon text seems somewhat smaller. For example:
  • Tab labels
  • Group labels
  • Button labels
with content, the size of items / text seems to be slightly smaller than the ribbon found in Office.

For reference, here is a sample:

<Window
    x:Class="RibbonSamples.MainWindow"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:ribbon="http://schemas.actiprosoftware.com/winfx/xaml/ribbon"
    xmlns:themes="http://schemas.actiprosoftware.com/winfx/xaml/themes"
    Title="MainWindow"
    Height="350"
    Width="525"
    >
    <Grid themes:ThemeManager.Theme="Office2010Silver">
        <ribbon:Ribbon>
            <ribbon:Tab Label="Home" />
            <ribbon:Tab Label="Create">
                <ribbon:Group Label="Templates">
                    <ribbon:PopupButton Label="Application Parts" />
                </ribbon:Group>
                <ribbon:Group Label="Templates">
                    <ribbon:Button Label="Table" />
                    <ribbon:Button Label="Table Design" />
                    <ribbon:PopupButton Label="SharePoint Lists" />
                </ribbon:Group>
            </ribbon:Tab>
            <ribbon:Tab Label="External Data" />
        </ribbon:Ribbon>
    </Grid>
</Window>
Side by side with an Office 2010 product (Access), it looks like this (I didn't bother putting icons in, but you can still see the difference in text).

Is there a setting or property I can change to make my ribbon match Office's text size out of the box?

Thank you,
Mick

Comments (3)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mick,

When I run our Sample Browser demos and bring them up next to your screenshot, they look like the bottom Office screenshot and match its font and size. Can you describe your operating system, .NET version, and theme settings? We're not seeing anything like that top screenshot, even in XP.

Perhaps you have some other font size settings in your App resources that are affecting things? Or do you have smaller font sizes set in your system font settings?


Actipro Software Support

Posted 14 years ago by Mick
Avatar
Hello,

Currently, I use:
Windows Vista 32 bit, version 6.0.6002 SP2
.NET 4.0
Theme: Windows Vista


I was able to get the sample app that I posted above to match Office2010 exactly by turning up my DPI settings to 120.

Switching between 96 / 120 DPI on my machine scales up the ribbon on both Actipro and Office, but only on the 120 DPI setting do the two ribbons seem to match on my machine.

Is there a tool I can run to get you all of the information you need in terms of theme / OS?

Mick
Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Mick,

We have code that kicks in for Vista and Windows 7 that slightly reduces the default font size but on our Win 7 machines the result is the correct Office font size.

Question, do you have the "Segoe UI" font on your machine?


Actipro Software Support

The latest build of this product (v24.1.3) was released 3 months ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.