Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
140
Drag Drop from XamTree to XamMonthView
posted

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

Parents
No Data
Reply
  • 22015
    posted

    Hello Jeff,

     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.

    Tree_DragDrop.zip
Children