Hi There,
Can anyone provide an example of how to catch connection 'drag & drop' events in a RadDiagram? I've bound all the connection related DnD events to a property handler but it get a hits very sporadically when moving the connections from one shape to another. The code is shown below. No doubt I'm doing something silly but I can't find any example anywhere in the docs. Any suggestions on how to get this to work are greatly appreciated.
Regards,
Eric G.
// create some event handlers
private void EdgeDragEnter(object sender, EventArgs e)
{
System.Diagnostics.Debug.WriteLine("drag enter");
}
.....
// create some connections and wire them to the handlers
var connection = new RadDiagramConnection() { Source = edgePair.Key, Target = targetInfo.node, ... TargetCapType=CapType.Arrow2Filled};
connection.DragEnter += EdgeDragEnter;
connection.DragLeave += EdgeDragEnter;
connection.Drop += EdgeDragEnter;
connection.BeginEdit += EdgeDragEnter;
connection.EndEdit += EdgeDragEnter;
connection.GotFocus += EdgeDragEnter;
connection.ManipulationCompleted += EdgeDragEnter;