We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Center Icon


I need a button with centered icon and no text.
But I can't achieve that with HorizontalAlignment="Center" nor HorizontalContentAlignment="Center"

Can you help me?


3 Replies

PB Priyanga Balasubramaniam Syncfusion Team August 31, 2016 11:00 AM UTC

Hi Harald,

Thank you for contacting Syncfusion Support.

We have checked your query and created the workaround sample to meet your requirement. In this sample we have set HorizontalAlignment as Center for internal Grid using VisualUtils.

On analyzing your requirement, we suggest to use our RibbonButton control which meets your requirement. We have used RibbonButton in this sample. We can show image at center in RibbonButton by setting HorizontalContentAlignment property as "Center".

Please download the sample from the below location.


Priyanga B

HB Harald Betzler August 31, 2016 04:17 PM UTC

Thank you. It works.

PB Priyanga Balasubramaniam Syncfusion Team September 1, 2016 04:42 AM UTC

Hi Harald,

Thanks for the update.

Let us know if you need any other assistance.

Priyanga B

Live Chat Icon For mobile
Up arrow icon