Skip to content

Nested drop targets #159

@dpisanu

Description

@dpisanu

Hello all,

I currently searching for a way to configure the drag and drop in a way that in the use case of nested drop targets

The inner child get the drop handler call before the parent handler. Also i need a possibility to mark the drop "As handled" so that the parent does not get it call at all or can determine if the event has been handled.

Thanks in advance

This is some pseudo XAML code.

<ParentControl AllowDrop="True"
   dragDrop:DragDrop.IsDragSource="True"
   dragDrop:DragDrop.IsDropTarget="True"
   dragDrop:DragDrop.DropHandler="{Binding}"
   dragDrop:DragDrop.DragAdornerTemplate="{x:Null}"
   dragDrop:DragDrop.EffectNoneAdornerTemplate="{x:Null}">

   <ChildControl AllowDrop="True"
      dragDrop:DragDrop.IsDragSource="True"
      dragDrop:DragDrop.IsDropTarget="True"
      dragDrop:DragDrop.DropHandler="{Binding}"
      dragDrop:DragDrop.DragAdornerTemplate="{x:Null}"
      dragDrop:DragDrop.EffectNoneAdornerTemplate="{x:Null}">
   </ChildControl>
</ParentControl>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions