Articles in this section
Category / Section

How to remove an icon from ButtonAdv control?

1 min read

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.

 

       <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="50"/>
            <RowDefinition Height="80"/>
        </Grid.RowDefinitions>
        <sync:ButtonAdv x:Name="normalicon" SizeMode="Normal" Label="Normal-ButtonAdv"
                        SmallIcon="{x:Null}" Width="180" Height="30"/>
        <sync:ButtonAdv x:Name="largeicon" Grid.Row="1" SizeMode="Normal" 
                        Label="Large-ButtonAdv" LargeIcon="{x:Null}" 
                        SmallIcon="{x:Null}" Width="180"
                        Height="30"/>
       </Grid>

 

Output:

Graphical user interface, text, application

Description automatically generated

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments
Please sign in to leave a comment
Access denied
Access denied