Hi,
I have a XamDayView XamTree and I am trying to implement Drag & Drop functionality between XamTree and XamDayView but I have some problems: In the XamTree I have defined a follows DragSource
<ig:DragDropManager.DragSource> <ig:DragSource x:Name="treeDragSource" IsDraggable="True" DragChannels="ChannelB" DragStart="DragSource_DragStart" Drop="DragSource_Drop"></ig:DragSource></ig:DragDropManager.DragSource>
and in the XamDayView I have defined a follows DropTarget
<ig:DragDropManager.DropTarget> <ig:DropTarget IsDropTarget="True" DropChannels="ChannelB" DropTargetMarkerBrush="Azure"></ig:DropTarget> </ig:DragDropManager.DropTarget>
I can drag an item from XamTree to XamDayView without any problem, I want to drag an item to a specific day and time of XamDayView and add an appointment. The problem I have is that I can not get the date / time on which dragged the XamTree item. How I can do this?
Regards,
I used this code
void
DragSource_Drop(object sender, DropEventArgs e){ ReadOnlyCollection<UIElement> _dropEl = e.DropTargetElements; object _data = _dropEl[2];}
for get the date but I don't know if is the best way for do it.
Hi
Is there any way you can find out where the drop hit the xamdayview control so you can create an appointment and add it to the source?
regards
Peter