This is a migrated thread and some comments may be shown as answers.

RadRibbonButton has its content left aligned in Fluent theme

3 Answers 75 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 11 Aug 2018, 05:14 AM

Hello,

When a button has a text that is larger than 32 pixels, the content of the button is left align, but it should be centered, as in other themes.

See the screen shot for an example.

3 Answers, 1 is accepted

Sort by
0
Vladimir Stoyanov
Telerik team
answered on 14 Aug 2018, 02:17 PM
Hello Patrick,

Thank you for the attached picture. 

In order to achieve what you are going for, you can set the HorizontalContentAlignment property of the RadRibbonButton to Center, since the HorizontalAlignment property of the ContentPresenter is bound to it. Here is what I have in mind: 
<telerik:RadRibbonButton Size="Large" HorizontalContentAlignment="Center" />

Can you give this a try and let me know if it works for you?

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 14 Aug 2018, 03:03 PM

Hi Vladimir,

The RadRibbonSplitButton has its icon correctly aligned, not the RadRibbonButton, so it should be a theme bug, not something we should correct "manually".

0
Vladimir Stoyanov
Telerik team
answered on 15 Aug 2018, 04:21 PM
Hello Patrick,

Upon further investigation I can confirm that the RadRibbonButton exhibits a different behavior in the Fluent theme. I have logged this behavior in our feedback portal: RibbonView: RadRibbonButton does not have HorizontalContentAlignement and VerticalContentAlignment set by default in Fluent theme. I have also awarded you with some telerik points for bringing this to our attention.

For the time being you can set the HorizontalContentAlignment property as suggested in my previous reply.

I remain at your disposal for any further assistance you might need.

Regards,
Vladimir Stoyanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
RibbonView and RibbonWindow
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Vladimir Stoyanov
Telerik team
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or