Hi,
I've been using XamRibbon for years and it always has this issue with cutting off the bottom of button's caption, see attached for example. The letter 'g' in word ‘Mapping' was cut off. Is there any way to fix this? Thanks.
Hi Daniel,
You should be able to change the font size and family and the button control should size appropriately. What values did you use for the size and family?
Hi Rob,
I finally found out why this happens. We did specify font family and font size on the XamRibbon, once those are removed, the clipping went away. Does this mean we should not change font when using XamRibbon? btw, we're setting the theme to Office2010Blue.
I've taken the code and added it to a sample and I don't see the clipping you showed in the screenshot. Do you have a certain theme applied to the ribbon? What about any custom styles?
I've attached my sample. Can you try running it on your end and see if you can reproduce the clipping issue?
Rob, I'm using 12.2 now, but the same thing happened from 11.2. The "something else underneath" is the ribbon group caption. Following is my XAML for this group, we didn't do anything special here.
<igRibbon:RibbonGroup Caption="{x:Static res:MyProductShellRes.GetUpToSpeed}" Margin="5,0,0,0"> <igRibbon:RibbonGroup.Variants> <igRibbon:GroupVariant Priority="70" ResizeAction="ReduceImageAndTextNormalTools"/> </igRibbon:RibbonGroup.Variants> <igRibbon:ButtonTool Id="WhatsNew" Name="buttonWhatsNew" Caption="{x:Static res:MyProductShellRes.GetUpToSpeedHeader}" Command="{Binding ShowWhatsNewCommand}" LargeImage="{x:Static imageLocal:ImageResources.WhatsNew32}" igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"> <igRibbon:ButtonTool.ToolTip> <igRibbon:XamRibbonScreenTip Header="{x:Static res:MyProductShellRes.GetUpToSpeedHeader}" Content="{x:Static res:MyProductShellRes.GetUpToSpeedDes}" FooterSeparatorVisibility="Hidden" /> </igRibbon:ButtonTool.ToolTip> </igRibbon:ButtonTool>
<igRibbon:ButtonTool Id="RibbonMapping" Name="buttonRibbonMapping" Caption="{x:Static res:MyProductShellRes.RibbonMapping}" Command="{Binding ShowRibbonMappingCommand}" LargeImage="{x:Static imageLocal:ImageResources.RibbonMapping32}" igRibbon:RibbonGroup.MaximumSize="ImageAndTextLarge"> <igRibbon:ButtonTool.ToolTip> <igRibbon:XamRibbonScreenTip Header="{x:Static res:MyProductShellRes.RibbonMapping}" Content="{x:Static res:MyProductShellRes.RibbonMappingDes}" FooterSeparatorVisibility="Hidden" /> </igRibbon:ButtonTool.ToolTip> </igRibbon:ButtonTool>
</igRibbon:RibbonGroup>
Which version of the ribbon are you using? 12.1? 12.2?
I've tried reproducing this in my own sample but I don't see any clipping. In your screenshot I see that you have something else underneath that button, the "to Speed" text. Is that another button? Can you send me the XAML for that RibbonGroup where the "Ribbon Mapping" button is located?