Hi,
I might be missing a trick but I want to make the appointment presenter a drop target for a node dragged from tree. The tree dragging is fine I am just not sure how to set drop target on presenter. Tried the following
<Style TargetType="{x:Type igPrim:AppointmentPresenter}">
<EventSetter Event="Loaded" Handler="AppointmentPresenter_Loaded"/>
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="igPrim:AppointmentPresenter">
<Grid>
<ig:DragDropManager.DropTarget>
<ig:DropTarget IsDropTarget="True" DropTargetMarkerBrush="Black"/>
</ig:DragDropManager.DropTarget>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
Please can you assist.
kind regards,Anne
Hello Anne,
Yes, you should add the generic.shared.xaml file, which contains the modified Style for the AppointmentPresenter. If you want you an remove the Styles and resources that are not related to this Style.
I have a drag drop on a timeslotpresenter as well as the activity presenter never gets to activity drag drop
Do I have to put the entire new xaml file in my application to get this to work?
I am just checking the progress of this issue and was wondering if you managed to achieve your goal or if you need any further assistance on the matter.
Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I copied the default Style of the AppointmentPresenter and set the Grid to be the DropTarget as you did and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
Looking forward for your reply.