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
No Data
Reply
  • 1540
    posted

    Question on Forum Posting: Is there a way to insert a code snippet without causing the automatic formatting to foul things up???

    I took great pains to remove the linebreaks (or paragraph breaks) from the code in the above post but it still rendered the remaining text barely readablle.

    Help!

     

Children