hide button icon on all themes

Hi,

How to hide ButtonAdv icon on all themes?


3 Replies

MS Mahalakshmi Sugumar Syncfusion Team March 16, 2022 02:45 PM UTC

Hi Fahad,


You can hide the icon of ButtonAdv by setting its SmallIcon and LargeIcon properties as null. Please find the code snippet, and KB article for the same from the below location.


Code snippet:

<syncfusion:ButtonAdv Width="100"

                                       Height="50"

                                          SmallIcon="{x:Null}"

                                       LargeIcon="{x:Null}" />


KB link: https://www.syncfusion.com/kb/6919/how-to-remove-an-icon-from-buttonadv-control

Please try the above solution and let us know if it is helpful.


Regards,
Mahalakshmi S



FA fahad March 18, 2022 05:10 AM UTC

Hi,

I want to do this at the application level(App.xaml)

It works on the default theme only and if i change the theme i.e Material or Fluent Button Icon shows again.

Any help about that?



MS Mahalakshmi Sugumar Syncfusion Team March 21, 2022 12:21 PM UTC

Hi fahad,

Query1: I want to do this at the application level (App.xaml)

We have prepared a sample based on your requirement in which we have customized the style of ButtonAdv for the FluentLight theme. Please find the code snippet, and sample for the same from below location.

Sample Link:  https://www.syncfusion.com/downloads/support/directtrac/general/ze/ButtonAdv-style-customization-1184442733.zip


Code snippet:


MainWindow.xaml:

 

<Setter Property="SmallIcon" Value="{x:Null}"/>

<Setter Property="LargeIcon" Value="{x:Null}"/>


Please try the above solution and let us know if it is helpful. 


Query2: It works on the default theme only and if i change the theme i.e.Material or Fluent Button Icon shows again.

We are unable to reproduce the reported issue, please refer to the attached sample for reference.


Sample link: https://www.syncfusion.com/downloads/support/directtrac/general/ze/ButtonAdvIcon909574086.zip


 If we misunderstood the query, please provide more details about the requirement, or modify our sample and revert to us with a reproducible issue or video. So, it will be helpful to prompt the solution further.


Regards,

Mahalakshmi S


Loader.
Up arrow icon