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?

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

Article ID: Published Date: Last Revised Date: Platform: Control:
6919 05/31/2016 05/31/2016 WPF ButtonAdv
Did you find this information helpful?
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"/>


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.

Add Comment
You must log in to leave a comment

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