Lester's WPF\SL Blog

Simple, Easy & Beautiful

Drag drop library updated

Drag drop library updated

Rate This
  • Comments 13

The drag drop entry that I had posted has been used by a lot of you guys out there and I have received a lot of suggestions/bugs. I also got a few ready made fixes from you... Thank You :) ...  So I finally got down to incorporating all these changes and got the new library up ... One frequent problem was the adorner flickering and this was a result of the adorner being deleted and created ... so thats fixed. There are also some fixes, code moving around and the usual stuff.

Hope you find the new library useful :)

Library attached

Share this post

 

Attachment: DragDrop.zip
  • PingBack from http://www.biosensorab.org/2008/02/26/drag-drop-library-updated/

  • You've been kicked (a good thing) - Trackback from DotNetKicks.com

  • Hi Lester,

           Could you give a quick round-up of the changes you made in the library so that I can incorporate it in the original DragDropManager...(http://blog.pixelingene.com/?p=9)

    Regards,

    Pavan

  • as mentioned, the code is restructured to use classes not interfaces.. This is more of a preference to separate out drag/drop logic. Many readers seemed to prefer such a design. There were also some fixes related to the adorner appearing at (0,0), the mouse postion being reported incorrectly, and the flickering of the adorner. Also some of the code was moved back to the library so that the user classes remain small.

  • Hi Lester,

    I want to use your library on TreeView. Everything works just fine, except one thing. How would you implement highligting of treeview items which are dragged over? I tried to add event trigger, but drag drop manager either eats preview drag/drop events or all TreeView items in path to root are highlighted. Any ideas  please?

    thanks Peter

  • Sharepoint Using NAnt to Build SharePoint Solutions [Via: Bil Simser ] WPF Drag drop library updated...

  • Link Listing - February 26, 2008

  • What are the liquidnet control references? those are missing.

  • Thanks Lester...I will incorporate them into the library. This also makes me think that I should put up a CodePlex project so that there is a single point of access.

  • partha those are dead references.. prj has been updated

    Peter, if the events are being eaten by drag drop manager you should still be able to listen to them if the events are set correctly.. check the AddHandler function... the last parameter is a bool which when set to true bubbles up the events even if they are handled.. this might be handy in ur scenario

  • Have you noticed that dropping an object over a TextBox in the CanvasExample clones the dragged object?

  • We're a catalog printer. This info helps a lot.

    <a href="http://www.usaprintingonline.com">www.usaprintingonline.com</a>

  • Good stuff!

    I get a compile error in the XAML file though (both in this and the old version). Here's a fix:

      http://learnwpf.com/Posts/Post.aspx?postId=75a16bfb-7d54-4941-84c6-2b8c22ae1bc5

Page 1 of 1 (13 items)