SfButtton Trigger Padding problem

Hello,

I added the trigger to the SfButton with icon. After trigger occured padding on text in button don't work.

My code:

<buttons:SfButton Grid.Row="1" Style="{StaticResource TourPageButton}"

                Text="{Binding TourOne.GetName}"

                ShowIcon="True"

                ImageSource="clock.png"

                Command="{Binding FirstTourCommand}"

                IsVisible="{Binding TourOne.Enable}"

                Padding="32,0,0,0">

                <buttons:SfButton.Triggers>

                    <DataTrigger TargetType="buttons:SfButton" Binding="{Binding TourOne.IsComplete}" Value="True">

                        <Setter Property="BackgroundColor" Value="{StaticResource TourPageButtonBackgroundIsComplete}"/>

                        <Setter Property="ImageSource" Value="smile.png"/>

                        <Setter Property="TextColor" Value="{StaticResource TourPageButtonTextColorIsComplete}"/>

                        <Setter Property="Padding" Value="32,0,0,0" />

                    </DataTrigger>

                    <DataTrigger TargetType="buttons:SfButton" Binding="{Binding TourOne.FailedToComplete}" Value="True">

                        <Setter Property="BackgroundColor" Value="{StaticResource TourPageButtonBackgroundFailedToComplete}"/>

                        <Setter Property="ImageSource" Value="frown.png"/>

                        <Setter Property="TextColor" Value="{StaticResource TourPageButtonTextColorFailedToComplete}"/>

                        <Setter Property="Padding" Value="32,0,0,0" />

                    </DataTrigger>

                </buttons:SfButton.Triggers>

            </buttons:SfButton>


5 Replies

YP Yuvaraj Palanisamy Syncfusion Team August 25, 2021 01:45 PM UTC

Hi Pawel, 
 
Greetings from Syncfusion. 
 
We have analyzed your query and example code, we are able to reproduce the reported problem “SfButton text padding not working when trigger occurred” at our end. Currently we are validating this and we will update you with complete details on or before 27th August 2021. We appreciate your patience until then. 
  
Regards,  
Yuvaraj. 



YP Yuvaraj Palanisamy Syncfusion Team August 27, 2021 03:45 PM UTC

Hi Pawel, 
  
Greetings from Syncfusion support.  
  
We have confirmed that the reported “Padding is not updated properly while using triggers with imagesource” as issue, and the fix for the reported issue will be included in our upcoming weekly NuGet release which is expected to be roll out on 14th September 2021. We appreciate your patience until then. We will let you know once it gets rolled out.      
  
   
Note: The provided feedback link is private, and you need to login to view this feedback. 
 
Regards, 
Yuvaraj 



YP Yuvaraj Palanisamy Syncfusion Team September 15, 2021 12:22 AM UTC

Hi Pawel, 
 
Sorry for the inconvenience.  
   
We have fixed the reported issue “Padding is not updated properly when update the image source dynamically” and due to some technical hurdles, we are not included this fix in the today weekly nuget release. And we will include the fix in our upcoming weekly nuget release which will be rolled out on 21st September 2021. Once we rolled out, we will let you know, until then please use the already provided patch.  
   
   
   
   
Assembly Version: 19.2.0.55 
       
Disclaimer:     
    
Please note that we have created this patch for version 19.2.0.55 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received.   
      
    
Please clear the NuGet cache, before using the latest one.
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache     
    
  
Regards, 
Yuvaraj 



YP Yuvaraj Palanisamy Syncfusion Team September 22, 2021 12:40 PM UTC

Hi Pawel, 
  
Sorry for the inconvenience caused. 
 
Since our Volume 3, 2021 release is scheduled by end of this month our weekly nuget release was not done so we have fixed the reported problem and we will generate the patch for this fix. We will include this fix in our upcoming weekly nuget release after volume 3 release. We appreciate your patience until then. We will let you know once it gets rolled out. Until then please make use of this patch.  
   
  
  
  
Assembly Version: 19.2.0.55  
      
Disclaimer:    
   
Please note that we have created this patch for version 19.2.0.55 specifically to resolve the issue reported in this incident. If you have received other patches for the same version for other products, please apply all patches in the order received. 
 
 
Please clear the NuGet cache, before using the latest one.
https://www.syncfusion.com/kb/6987/how-to-clear-nuget-cache   
 
 
Regards, 
Yuvaraj 



GM Gayathri Manickam Syncfusion Team October 14, 2021 11:22 AM UTC

Hi Pawel, 
 
We are glad to announce that our weekly NuGet was rolled out and fix for the reported issue was included in the weekly NuGet.

NuGet Version: 19.3.0.45  

We thank you for your support and appreciate your patience in waiting for this release. Please get in touch with us if you would require any further assistance.  
  
Regards, 
Gayathri M. 


Loader.
Up arrow icon