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
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

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.




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

2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment
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?

<StackPanel Orientation="Vertical">

                <syncfusion:ButtonAdv x:Name="ImportChemicals" HorizontalAlignment="Left" Label="Import Chemical Delivery Data" 

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

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


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


Please check this sample.


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..




Kannan R [Syncfusion]
Nov 26, 2018

Hi Phil,


Thank you for your suggestion.




Venkateshwaran Ramdoss [Syncfusion]
Nov 26, 2018

Hi Phil,


We are glad that you are problem has been resolved.


Venkateshwaran V.R.

Please sign in to access our KB

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

Up arrow icon

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

Live Chat Icon For mobile