Button does not fire on click

Hello.

I am attaching a zip file containing a Xamarin Forms app I am currently developing.

One of the ContentPages has a button that definitely refuses to fire the Clicked event.

To reproduce, start the app on the Android emulator (or an Android phone) in debug mode.

On the first screen, click the first entry in the ListView *Bresaola e rucola).

On the resulting screen click on the COMMENTS tab.

This goes to a screen that has a large button on the top right side containing text "Tap to read herbs and vegetables". The button has a Clicked event defined in Xaml that should lead, when clicked, to a

readThis_Clicked(object sender, EventArgs e) in code behind.

This does not happen, and I do not know what to do.

Can you help?


Attachment: Recipes_5f7d73f2.7z

3 Replies

ME Manivannan Elangovan Syncfusion Team January 4, 2022 03:28 AM UTC

Hi Paul G Mariotti, 


We have checked the provided sample for reported issue sfbutton does not fire click event and it is working fine at our end. 


Please find the tested video in the attachment with modified below code for changing the SfButton BorderColor as Red in the button Clicked event for your reference. 


private void readThis_Clicked(object sender, EventArgs e) 

    readThis.BorderColor = Color.Red; 


Please ensure this at your end once and if you still facing same issue could you please share more details such as device details, button package version and VS version which will be helpful for us to investigate and provide you a better solution at earliest? 


Regards, 

Manivannan E 


Attachment: ScreenCapture_44f9a896.zip


PR Princewill June 7, 2022 02:01 AM UTC

Hi, 

I had the same issue the solution I applied was to add the following to android project references:


Syncfusion.Buttons.XForms.dll
Syncfusion.Buttons.XForms.Android.dll
Syncfusion.Core.XForms.dll
Syncfusion.Core.XForms.Android.dll
Syncfusion.Licensing.dll 


This solved the problem   



RS Ruba Shanmugam Syncfusion Team June 7, 2022 08:44 AM UTC

Hi Princewill,


We are glad that our dll's was helpful in resolving your issue and thanks for providing this suggestion


Regards,

Ruba Shanmugam


Loader.
Up arrow icon