Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
145357 | Jun 18,2019 10:27 PM UTC | Jun 21,2019 06:03 AM UTC | Xamarin.Forms | 3 |
![]() |
Tags: SfSchedule |
it is possible to add a UI Confirm box before to complete a drag & drop meeting action over the SFSchedule? I tried many ways to do that but I can not get the expected result. Something like that
//....
private void Handle_AppointmentDrop(object sender, Syncfusion.SfSchedule.XForms.AppointmentDropEventArgs e)
{
e.Cancel = MyConfirmDialogRoutine().Result //because is an Async Operation and the event handler only is Sync
}
[C#]
private async void Schedule_AppointmentDrop(object sender, AppointmentDropEventArgs e)
{
bool CanDrop = await contentPage.DisplayAlert("Drop Appointment", "Would you like to drop the appointment", "Yes", "No");
if (!CanDrop)
{
RepositioningAppointment(e.Appointment as ScheduleAppointment);
}
} |
This works for me . Thanks !
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.