Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1540
Cannot set WrapPanel as DropTarget
posted

I'm trying to set a WrapPanel as DropTarget using the following approach:

 

 

 

 

 

 

 

// Setup Drop Target
DropTarget dropTarget = new DropTarget();
dropTarget.IsDropTarget =
true;
dropTarget.DropChannels.Add(
"ChannelA");
DragDropManager.SetDropTarget(tabsContentPanel, dropTarget);

where "tabsContentPanel" is a WrapPanel.

This approach works on a ListBox and also on XamTree items contained in the WrapPanel.  But when I set it on the WrapPanel, it doesn't allow dropping to the blank area of the WrapPanel.

Need help in setting the unoccupied area of a WrapPanel as a DropTarget!

Parents Reply Children