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.
publicclassAcceptButtonCustomCommand : ICommand
publicevent EventHandler CanExecuteChanged;
publicbool CanExecute(object parameter)
public void Execute(object parameter)
// You can write your set of codes that needs to be executed
protectedasyncvoid CancelAppointment(string appointmentId)
secondPopup = new SfPopupLayout();
secondPopup.PopupView.HeaderTitle = "CancelCodesWereExecuted";
//Code for Cancel Appointment
Please let us know, if this helpful.