Welcome to MSDN Blogs Sign in | Join | Help

Lester's WPF blog


Simple, easy & beautiful

News

Drag and Drop operations code in WPF

Its been sometime since my last post.. been busy off late.. :) ..

One of the queries that is often repeated is about drag and drop - Now Marcelo has posted a couple of posts on his blog which shows how this is done the right way. One issue that I had was that the code is in VB and some syntax's are just hard to get for someone more familiar with C. :) ... Trying to get around this, I ended up writing the same in C# and here I have attached the code. As for the explanation, its best to visit Marcelo's blog.

Posted: Tuesday, April 11, 2006 6:57 PM by llester
Attachment(s): Adorner_MoveObjects.zip

Comments

Олег Михайлик said:

Всё-таки WPF — это целая гуманоидная цивилизация. Сложно, гармонично и пока очен
# April 11, 2006 5:19 PM

Marcelo's WebLog said:

Every now and then, I get a request for putting all the sample code together for the drag and drop walk-through......
# May 15, 2006 5:35 PM

Dmitry1975 said:

Hi guys, to me it rather looks like a hack;) I ran the example and looks pretty cool. Two things though:

1. How do I trap for DragOver? You have a button in your canvas but when I sibscribe for its DragOver, nothing happens.

2. There's a weird flickering at the left top corner, I belive it's a phantom adorner.
# July 26, 2006 5:00 PM
New Comments to this post are disabled
Page view tracker