I am doing a drag/drop operation from a XamTree to XamMonthView using the DragDrop Framework. I've figured out how to get the Drag Drop to work but what I can't figure out is how to get the Day that I drop on. Can you tell me what I would need to put in the DragSource_Drop Event which I am firing based on the Drop of the DragDropManager.DragSource. I'm binding both the XamTree and XamMonthView to DataViews if that matters.
PrivateSub DragSource_Drop(sender AsObject, e As Infragistics.DragDrop.DropEventArgs)
Dim DropDate as date = ???
End Sub
Hello Jeff,
Thank you for the feedback. I am glad I was able to help.
That worked perfectly. Thank you.
I am just checking your progress on the issue. Please do not hesitate to let me know if you have any further questions on this matter.
Thank you for your post. I have been looking into it. In order to achieve the functionality you have described, you have to set the MonthtViewDay as DropTarget first. The MonthViewDay is the visual element, that represents a day from the calendar. Then using the Tag property of the Grid(part of the MonthViewDay template) you can get the day you are dropping the appointment on.
I have created a small sample for you, showing this functionality. Please find the attached sample application and feel free to let me know if you have any further questions on this matter.