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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Center Icon

Thread ID:

Created:

Updated:

Platform:

Replies:

125632 Aug 30,2016 07:47 AM UTC Sep 1,2016 04:42 AM UTC WPF 3
loading
Tags: ButtonAdv
Harald Betzler
Asked On August 30, 2016 07:47 AM UTC

Hi,

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?

Regards
Harald

Priyanga Balasubramaniam [Syncfusion]
Replied On 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.

Sample:ButtonAdvExample

Regards,
Priyanga B



Harald Betzler
Replied On August 31, 2016 04:17 PM UTC

Thank you. It works.


Priyanga Balasubramaniam [Syncfusion]
Replied On September 1, 2016 04:42 AM UTC

Hi Harald,

Thanks for the update.

Let us know if you need any other assistance.

Regards,
Priyanga B

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;