Xamarin Forms : Click Events dont get fired

Good Day All 

i have two buttons , one is a Sysfusion and one a normal generic button 

  
                       
                               
                               BackgroundColor="{DynamicResource PrimaryColor}" 
                                    CornerRadius="20"
                                    HeightRequest="40" 
                                  Clicked="btnsend_Clicked"
                                    HorizontalOptions="End" 
                                    VerticalOptions="End"
                                    WidthRequest="40">

 
                           
                       
                               BackgroundColor="{DynamicResource Blue}" 
                                    CornerRadius="20"
                                    HeightRequest="40"  
                                    HorizontalOptions="End"
                                    VerticalOptions="End"
                                    WidthRequest="40" Clicked="chat_send">
                           
                       
                       
                          
btn1 click event does not get fired but click event which is the same method for btn2 gets fired. 

Thanks 



1 Reply 1 reply marked as answer

HM Hemalatha Marikumar Syncfusion Team December 28, 2020 05:15 AM UTC

Hi Vuyiswa,  
  
Greetings from Syncfusion.   
  
We have checked the reported problem with SfButton and we would like to let you know that it has been worked fine on all platforms of Xamarin. We suspect that you may face this problem in iOS the platform when not including the needed renderer in its AppDelegate file of your project as mentioned below  
  
public override bool FinishedLaunching(UIApplication app, NSDictionary options)  
 
    global::Xamarin.Forms.Forms.Init();  
    LoadApplication(new App());  
    Syncfusion.XForms.iOS.Border.SfBorderRenderer.Init();  
    Syncfusion.XForms.iOS.Buttons.SfButtonRenderer.Init();  
    return base.FinishedLaunching(app, options);  
 
  
 
Please ensure whether you have added this renderer and update us whether this provided suggestion works at your end or not.  
  
Regards,
Hemalatha M.  
 


Marked as answer
Loader.
Up arrow icon