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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to remove an icon from ButtonAdv control?

Platform: WPF |
Control: ButtonAdv |
Published Date: May 31, 2016 |
Last Revised Date: May 31, 2016

We can remove an icon in ButtonAdv by setting null value to the corresponding icon based on SizeMode property. Set null value to the SmallIcon property for Normal SizeMode and to the LargeIcon property for Large SizeMode. The following code has explained the same.

 

 

Output:

C:\Users\durga.rajan\Pictures\Saved Pictures\Capture.PNG

ADD COMMENT
You must log in to leave a comment
Comments
Clint
Mar 04, 2018

Thta removes the icon, but not the space that the icon takes up.  How do you remove the space allowed, so that the text completely fills the button?


               

                                      SmallIcon="{x:Null}" SizeMode="Normal" LargeIcon="{x:Null}" 

                                      HorizontalContentAlignment="Center" Width="193"/>

           

Reply
Vijayalakshmi Roopkumar [Syncfusion]
Mar 08, 2018

Hi Clint

We have checked the reported case using the provided code example, but we are unable to reproduce the spacing issue at our end. We have prepared the sample for the same. 

Sample Link: http://www.syncfusion.com/downloads/support/directtrac/general/ze/ButtonAdv_Modified315423265.zip

Screenshot:


Please check this sample.

Regards

Vijayalakshmi V.R.

Phil Howard
Nov 24, 2018

Hi Clint,

Hope this isnt too late, but I had the same problem and found that after you remove the icon (as above), if you set:

IconHeight="1" IconWidth="1" HorizontalContentAlignment="Center"

The problem does away..

Cheers

Phil


 

Reply
Kannan R [Syncfusion]
Nov 26, 2018

Hi Phil,

 

Thank you for your suggestion.

 

Regards,

Kannan

Venkateshwaran Ramdoss [Syncfusion]
Nov 26, 2018

Hi Phil,

 

We are glad that you are problem has been resolved.


Regards,

Venkateshwaran V.R.

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

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