Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
150947 | Jan 25,2020 11:16 AM UTC | Jan 27,2020 02:04 PM UTC | Xamarin.Forms | 1 |
![]() |
Tags: SfPopup |
We have checked your query “Execute function on SfPopup button tapped” and achieved your requirement by using AcceptCommand. We would like to inform you, in Execute method of AcceptButtonCustomCommand class, you can call your desired function. For further details you can refer following code example, and sample following here.
In the following sample, We have shown the another popup when click the Accept button of first popup.
Code Example:
[C#] --- publicclassAcceptButtonCustomCommand : ICommand { publicevent EventHandler CanExecuteChanged; SfPopupLayout secondPopup;
publicbool CanExecute(object parameter) { returntrue; }
public void Execute(object parameter) { // You can write your set of codes that needs to be executed CancelAppointment("Cancel"); }
protectedasyncvoid CancelAppointment(string appointmentId) { secondPopup = new SfPopupLayout(); secondPopup.PopupView.HeaderTitle = "CancelCodesWereExecuted"; secondPopup.Show(0,0); //Code for Cancel Appointment } } --- |
Sample link: https://www.syncfusion.com/downloads/support/forum/150947/ze/AcceptButtonCommand-1688829069.zip
Please let us know, if this helpful.
Regards,
Deepika.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.