I am afraid that you cannot trigger the Drop event in the ViewModel of the ScheduleView, but you can get the ViewModel in the event handler. There are two ways:
- using the following method:
var scheduleView = state.ServiceProvider.GetService<IObjectEditor<IAppointment>>()
and then scheduleView.DataContext;
- create a property for the ViewModel at your custom behavior and set it once the page is initialized.
Hope this helps.
All the best,
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>