Issues with WPF Drag & Drop in Vista / Windows 7

by robotix1986 25. October 2009 21:41

Hi Folks,

This time, back to WPF. I thought of using the drag & drop functionality in WPF. Just some experiments. Half-way through my coding. A DCR you may say.
I went through the Forbidden IconWPF documentation on MSDN, which seemed pretty straight-forward. I added the AllowDrop="True" tag to a ListView control for which I needed this feature. And I Compiled it.
So far so good. Then I tried dropping a file onto the ListView. However, no luck. All I got is the forbidden icon.

Hmm. Maybe it's some logic in my code that's preventing this from happening. I created a sample app with just the single ListBox. Still the same result.
I searched a couple of blogs. All examples were either similar or exactly the same as mine.
http://www.kirupa.com/blend_wpf/drag_drop_files_wpf_pg1.htm
http://www.codeproject.com/KB/WPF/WPF_Drag_And_Drop_Sample.aspx
http://msdn.microsoft.com/en-us/library/bb295243.aspx

Solution

Next, I started searching for issues with WPF drag & drop. No luck here either. Finally, found that Vista has an issue... or a "By Design" thing... which says that "Vista prevents lower security applications from giving data (and potentially hurting) higher level applications". It seems that same is the case with Windows 7.

Bingo... I was running VS and debugging as an Administrator. Running the application outside of VS makes it work perfectly fine. And thus I found my solution and my app it's drag & drop feature.

Till my next post

Regards,
AlD

Tags: , ,

.NET

Comments

12/3/2009 12:07:05 PM #

Fat Loss 4 Idiots Review

congrats on finding the solution

Fat Loss 4 Idiots Review United States | Reply

12/15/2009 9:31:38 AM #

Fat Loss 4 Idiots

Although I do agree with your post, I have my own reservations.

Fat Loss 4 Idiots United States | Reply

12/22/2009 3:36:15 PM #

mma pound for pound

I wasn't aware of the many ripples and depth to this story until I surfed here through Google! Great job.

mma pound for pound United States | Reply

12/27/2009 3:20:59 AM #

cash loans

Searching for this for some time now - i guess luck is more advanced than search engines Smile

cash loans United States | Reply

12/27/2009 3:21:59 AM #

payday loans

I like what I see. keep it going

payday loans United States | Reply

12/27/2009 4:42:23 AM #

Acai Berry Scam

Merry Christmas admin and a Happy New Year. I will be coming back to read more of your interesting post

Acai Berry Scam United States | Reply

12/28/2009 9:07:11 PM #

Niche Blueprint 2.0 Review

I like your blog so much that I feel I have to wish you. Happy New Year in advance. Have a nice and prosperous year ahead

Niche Blueprint 2.0 Review United States | Reply

1/6/2010 11:05:08 AM #

Niche Blueprint 2.0 Review

You write very interestingly. I think Google is becoming very smart. It can sense which website has interesting posts Smile

Niche Blueprint 2.0 Review United States | Reply

1/14/2010 11:04:17 PM #

Acai Products

Thank you for another great article. Where else could anyone get that kind of information in such a perfect way of writing? I have a presentation next week, and I am on the look for such information.

Acai Products United States | Reply

1/21/2010 6:24:35 AM #

mma pound for pound fighters

Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can't wait to read lots of your posts.

mma pound for pound fighters United States | Reply

1/31/2010 12:01:54 AM #

payday loans

Determine that the thing can and shall be done, and then we shall find the way.

payday loans United States | Reply

2/6/2010 9:59:47 AM #

Panic Away Review

Always worth visiting your blog to read your cool posts. Keep them coming.

Panic Away Review United States | Reply

2/6/2010 10:01:35 AM #

payday loans

We must never cease from exploration. And the end of all our exploring will be to arrive where we began and to know the place for the first time.

payday loans United States | Reply

2/6/2010 8:22:57 PM #

Acai Berry

Hey this is really nice information. I was looking for something similar like this. Thanks for this useful information.

Acai Berry United Kingdom | Reply

2/7/2010 4:19:43 AM #

payday loans

Twenty years from now you will be more disappointed by the things you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbour. Catch the trade winds in your sails. Explore. Dream. Discover.

payday loans United States | Reply

2/9/2010 3:51:19 AM #

Novoline

Very good Blog and Very informatively I comes bag

Novoline Germany | Reply

Add comment


(Will show your Gravatar icon)

  Country flag

biuquote
  • Comment
  • Preview
Loading



Powered by BlogEngine.NET 1.5.0.7
Theme by Mads Kristensen

About robotix1986

Yet another software developer in the software industry writing some kewl code and exploring new technologies when not doing the routine work stuff.

RecentComments

Comment RSS
Software Blogs - BlogCatalog Blog Directory