How To Get Dropped Resource In Xamarin.Forms Schedule (Sfschedule)?

Sample date Updated on Sep 13, 2025
drag-and-drop resource-view schedule xamarin xamarin-forms

You can get the dropped resource of SfSchedule in Xamarin.Forms using DropResourceItem in the AppointmentDrop event.

XAML

<syncfusion:SfSchedule
                x:Name="schedule"
                AllowAppointmentDrag="true"
                ScheduleView="TimelineView" 
                DataSource="{Binding Events}"
                ScheduleResources="{Binding Employees}"
                SelectedResources="{Binding SelectedEmployees}"
                ShowResourceView="True"
                ResourceViewMode="Absolute"/>

C#

public class SchedulerPageBehavior : Behavior<ContentPage>
{
    SfSchedule schedule;

    private void WireEvents()
    {
        this.schedule.AppointmentDrop += Schedule_AppointmentDrop;
    }

    private void Schedule_AppointmentDrop(object sender, AppointmentDropEventArgs e)
    {
        var changedResource = e.DropResourceItem;
        App.Current.MainPage.DisplayAlert("", "Resorce change into " + (changedResource as Employee).Name, "ok");
    }

    private void UnWireEvents()
    {
        this.schedule.AppointmentDrop -= Schedule_AppointmentDrop;
    }
}
Up arrow