This question is locked. New answers and comments are not allowed.
Hello.
I'm currently working with the drag & drop functionality for the ScheduleView control.
I use my own impementation of the ScheduleViewDragDropBehavior, in which i override the methods, needed for my scenarios.
For some time now, I've been struggling with getting the mouse position, relative to the ScheduleView control, when I drag items over it. My first attempt was to add a mouse move handler to the RootVisual property, but I noticed that, when a drag is in progress, the event handler never gets called (only the CanDrop method does). So I basically cannot get the last mouse movement when a drag operation is in progress.
The reason I need this functionality is that the items, that are being dragged, are added to existing appointments (these appointments are custom implementations of the IAppointment interface and have an added property, which is a collection of items that I'm dragging). The problem arises, when appointments are overlapping, so I cannot know onto which appointment the user wants to drop the payload.
Could there be any solution to this?
Any help would be more than moreso greatly appreciated. Thanks.
I'm currently working with the drag & drop functionality for the ScheduleView control.
I use my own impementation of the ScheduleViewDragDropBehavior, in which i override the methods, needed for my scenarios.
For some time now, I've been struggling with getting the mouse position, relative to the ScheduleView control, when I drag items over it. My first attempt was to add a mouse move handler to the RootVisual property, but I noticed that, when a drag is in progress, the event handler never gets called (only the CanDrop method does). So I basically cannot get the last mouse movement when a drag operation is in progress.
The reason I need this functionality is that the items, that are being dragged, are added to existing appointments (these appointments are custom implementations of the IAppointment interface and have an added property, which is a collection of items that I'm dragging). The problem arises, when appointments are overlapping, so I cannot know onto which appointment the user wants to drop the payload.
Could there be any solution to this?
Any help would be more than moreso greatly appreciated. Thanks.