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
180
XamDataTree Drag&Drop on UserControl
posted

Hello!

I'm currently trying to drag and drop a node from a XamDataTree to a WPF UserControl.

I'm not really into the Drag&Drop topic and just wondered if it is possible to trigger an event in the UserControl when the node has been dropped.

At the moment all I achieved is triggering the NodeDragDrop event on the XamDataTree with following code:

<ig:XamDataTree NodeDragDrop="xamDataTree1_NodeDragDrop" IsDraggable="True" IsDropTarget="True" Name="xamDataTree1" VerticalAlignment="Top" >
<ig:XamDataTree.GlobalNodeLayouts>
<ig:NodeLayout Key="ContinentLayout" TargetTypeName="Continent" DisplayMemberPath="Name"/>
</ig:XamDataTree.GlobalNodeLayouts>
</ig:XamDataTree>

I'd like to have something like <UserControl NodeDropped="UserConctrol_NodeDropped"/>

private void UserConctrol_NodeDropped(object sender, DropEventArgs e)
{
  var x = e.Data;
}

Parents Reply Children
No Data