
Hi,
I am trying to use the SyntaxEditor PasteDragDrop event to detect when files are dropped onto the view (we will then open these dropped files in other views).
Although we receive the event for the DragEnter ("PasteDragDropAction.DragEnter") action, we never seem to receive any further events such as for drop ("PasteDragDropAction.DragDrop").
Would you have some idea if i've overlooked something please?
I have pasted the code below which im using to test it:
I am trying to use the SyntaxEditor PasteDragDrop event to detect when files are dropped onto the view (we will then open these dropped files in other views).
Although we receive the event for the DragEnter ("PasteDragDropAction.DragEnter") action, we never seem to receive any further events such as for drop ("PasteDragDropAction.DragDrop").
Would you have some idea if i've overlooked something please?
I have pasted the code below which im using to test it:
public void PasteDragDropEvent(System.Object sender, ActiproSoftware.Windows.Controls.SyntaxEditor.PasteDragDropEventArgs e)
{
// A drop operation was performed over the Editor
if (e.Action == PasteDragDropAction.DragEnter)
{
e.Text = ""; // set to non-null to allow dropping
e.DragEventArgs.Effects = System.Windows.DragDropEffects.Copy;
}
if (e.Action == PasteDragDropAction.DragDrop)
{
// drop occured, check for files
// <--- NEVER REACHES HERE
}
}