I’m using the WPF Actipro SyntaxEditor.
By default, the control handles drag-and-drop internally (via OnPasteDragDrop) and marks the Drop event as handled, so the event never reaches parent controls like a Grid.
I need a way to detect when the drag operation contains files (DataFormats.FileDrop) and in that specific case, allow the Drop event to bubble up so the parent container can handle it.
Example scenario:
<Grid Drop="Grid_Drop">
<actipro:SyntaxEditor AllowDrop="True" />
</Grid>I want the parent Grid to handle the drop instead, but only when the drag contains files.
Question:
What’s the recommended way to let a Drop event bubble up from SyntaxEditor to its parent when the dragged data is a file?
-
Is there a way to prevent SyntaxEditor from consuming the drop?
-
Or can I forward the drop to the parent without causing recursion in
OnPasteDragDrop?
[Modified 4 months ago]