Bagikan melalui


Drag drop library updated

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

 

DragDrop.zip

Comments

  • Anonymous
    February 26, 2008
    PingBack from http://www.biosensorab.org/2008/02/26/drag-drop-library-updated/

  • Anonymous
    February 26, 2008
    You've been kicked (a good thing) - Trackback from DotNetKicks.com

  • Anonymous
    February 26, 2008
    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

  • Anonymous
    February 26, 2008
    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.

  • Anonymous
    February 26, 2008
    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

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

  • Anonymous
    February 27, 2008
    Link Listing - February 26, 2008

  • Anonymous
    February 27, 2008
    What are the liquidnet control references? those are missing.

  • Anonymous
    February 27, 2008
    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.

  • Anonymous
    February 27, 2008
    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

  • Anonymous
    March 11, 2008
    Have you noticed that dropping an object over a TextBox in the CanvasExample clones the dragged object?

  • Anonymous
    March 28, 2008
    We're a catalog printer. This info helps a lot. <a href="http://www.usaprintingonline.com">www.usaprintingonline.com</a>

  • Anonymous
    April 21, 2008
    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