Hi,
I created a usercontrol base on a ScheduleView. My user control contain a "OnCanDrop" event and a "SetDataSource" method. When I create my UserControl, I fill the view with ReadOnly slots. The user can use the "SetDataSource" method to fill the view with "Appointments" and "SpecialSlots". Appointments is for appointments and SpecialSlots is for open slots where user can drag apointments into it of where user can create new appointments.
My objects (appointments and special slots) contain specifics members for logical purpose.
What I'm trying to do in my a drag and drop behavior, it's to raise my event with the source appointment the user is dragging and the specialslot where the user is trying to drop or drag over so the user can decide if the appointment is trying to drag can be drop or not on the specialslot I raised through my event base on a logic he decided.
If I have an appointment from 8h00 to 8h15 and I want to drag it in the special slot 8h15 to 8h30. I want to raise my event only when I'm over the special slot not after each mouse move of my appointment.
Thank's
Alain
I created a usercontrol base on a ScheduleView. My user control contain a "OnCanDrop" event and a "SetDataSource" method. When I create my UserControl, I fill the view with ReadOnly slots. The user can use the "SetDataSource" method to fill the view with "Appointments" and "SpecialSlots". Appointments is for appointments and SpecialSlots is for open slots where user can drag apointments into it of where user can create new appointments.
My objects (appointments and special slots) contain specifics members for logical purpose.
What I'm trying to do in my a drag and drop behavior, it's to raise my event with the source appointment the user is dragging and the specialslot where the user is trying to drop or drag over so the user can decide if the appointment is trying to drag can be drop or not on the specialslot I raised through my event base on a logic he decided.
If I have an appointment from 8h00 to 8h15 and I want to drag it in the special slot 8h15 to 8h30. I want to raise my event only when I'm over the special slot not after each mouse move of my appointment.
Thank's
Alain