-
-
Notifications
You must be signed in to change notification settings - Fork 410
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nested drop targets #159
Comments
@dpisanu this is already possible by implementing the IDropTarget. Now you can use the In the main demo is a short example for using this property . Hope that helps. |
Yes and no. My Scenario is though. So a Bubbling sort of Mechanism would be ideal. Bubble up from the Child upwards to the Parent. |
Looks like I can do a HitTest ... let me check this and update some code here for you. |
/// <summary>
/// Implements <see cref="IDropTarget.Drop" />
/// </summary>
public void Drop(IDropInfo dropInfo)
{
// Dirty hack because GONG Drag and Drop does not correctly support nested dropping targets for the same data
var childControl = dropInfo.VisualTarget as ChildControl;
if ( childControl != null)
{
var hitTest = childControl.InputHitTest(dropInfo.DropPosition);
if ( !hitTest.Equals(childControl) && !hitTest.Equals(childControl.Property) )
{
dropInfo.NotHandled = true;
return;
}
}
} |
@dpisanu This issue should now work with the latest pre-release 1.0.0-ALPHA015 |
Was this ever implemented? Using 1.1.0, events are definitely tunnelling, and I'm not really a fan of InputHitTest workaround (which probably wouldn't even work with the Control structure I'm implementing). |
I'm in a similar situation. I've tried using both I have two separate
What I'm seeing is that I get the Is there a way to get this to work properly with the current implementation without resorting to hit testing? |
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.
The text was updated successfully, but these errors were encountered: