Welcome to MSDN Blogs Sign in | Join | Help

Lester's WPF blog


Simple, easy & beautiful

News

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

 

Posted: Tuesday, February 26, 2008 4:19 PM by llester
Attachment(s): DragDrop.zip

Comments

DotNetKicks.com said:

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

# February 26, 2008 4:21 PM

Pavan Podila said:

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

# February 26, 2008 5:45 PM

Lester said:

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.

# February 27, 2008 12:50 AM

Peter said:

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

# February 27, 2008 5:49 AM

Christopher Steen said:

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

# February 27, 2008 8:21 AM

Christopher Steen said:

Link Listing - February 26, 2008

# February 27, 2008 8:21 AM

partha said:

What are the liquidnet control references? those are missing.

# February 27, 2008 2:48 PM

Pavan Podila said:

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.

# February 27, 2008 6:16 PM

llester said:

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

# February 28, 2008 1:17 AM

BladeWise said:

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

# March 12, 2008 4:59 AM

cmyk1 said:

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

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

# March 28, 2008 11:44 PM

Torbjörn Kalin said:

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

# April 22, 2008 2:55 AM
New Comments to this post are disabled
Page view tracker