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

2/17/2010 11:30:28 PM #

same day payday loans

nice post…thanks for sharing.

same day payday loans United States | Reply

2/17/2010 11:30:47 PM #

same day payday loans

Hey very nice blog!! Buddy... Amazing... I will bookmark your blog for sure and take the feeds also...

same day payday loans United States | Reply

2/20/2010 8:14:42 AM #

Hortense Clarkston

Excellent share. Keep up the great work.

Hortense Clarkston United States | Reply

2/23/2010 12:29:29 AM #

acai berry

Hi everyone. Interesting idea for a blog. I have been searching the Internet for fun and came upon your website. Great post. Thanks a lot for sharing your knowledge! It is encourging to know that some people still put in an effort into managing their websites. I'll be sure to look in from time to time.

acai berry United States | Reply

2/24/2010 1:50:56 AM #

Registry Easy

Hey, your blog is a great one. I will bookmark it.

Registry Easy United States | Reply

2/24/2010 9:55:54 AM #

Alu okna

Hello, I very like the design of your web site. What template are you using?

Alu okna Slovenia | Reply

2/24/2010 4:27:51 PM #

Maryam Virani

Hey. I concluded you dont care me commenting in your post. I want to get in touch with you however I did not locate your contact infomation. I wanted to subscribe to your blog but I cant locate your RSS subscription link.. thank you.

Maryam Virani United States | Reply

2/25/2010 12:55:58 PM #

make money online

Have you ever considered adding more videos to your blog posts to keep the readers more entertained? I mean I just read through the entire article of yours and it was quite good but since I'm more of a visual learner,I found that to be more helpful well let me know how it turns out! I love what you guys are always up too. Such clever work and reporting! Keep up the great works guys I've added you guys to my blogroll. This is a great article thanks for sharing this informative information.. I will visit your blog regularly for some latest post.

make money online United States | Reply

2/26/2010 12:31:22 AM #

Vista Registry Cleaner

Nice post here - I really like Vista and Windows 7 but would hate it if any of these tools were not used appropriately to fix your PC.

Vista Registry Cleaner United Kingdom | Reply

2/27/2010 3:04:27 AM #

business directory

Have you thought about adding some sort of bookmarking buttons or links to your website?

business directory United States | Reply

3/1/2010 1:18:09 PM #

swoopo software

I was very pleased to find this site.I wanted to thank you for this great read!! I definitely enjoying every little bit of it and I have you bookmarked to check out new stuff you post.

swoopo software United States | Reply

3/2/2010 8:44:08 AM #

Indonesia Java International Destination

Great post! I am just starting out in community management/marketing media and trying to learn how to do it well - resources like this article are incredibly helpful. As our company is based in the US, it?s all a bit new to us. The example above is something that I worry about as well, how to show your own genuine enthusiasm and share the fact that your product is useful in that case.

Indonesia Java International Destination United States | Reply

3/4/2010 8:08:54 AM #

Edison NJ Electrician

Hi webmaster, commenters and everybody else !!! The blog was absolutely fantastic! Lots of great information and inspiration, both of which we all need!b Keep 'em coming... you all do such a great job at such Concepts... can't tell you how much I, for one appreciate all you do!

Edison NJ Electrician United States | Reply

3/5/2010 5:27:43 PM #

Arturo Hiebert

I don't agree with everything in this write-up, but you do make some very good points. I'm very interested in this matter and I myself do alot of research as well. Either way it was a well thoughtout and nice read so I figured I would leave you a comment. Feel free to check out my website sometime and let me know what you think.

Arturo Hiebert United States | Reply

3/6/2010 3:21:57 PM #

Nancie Apollo

Useful site, where did you come up with the info in this piece? I'm pleased I found it though, ill be checking back soon to see what other articles you have.

Nancie Apollo United States | Reply

3/7/2010 6:47:54 AM #

boards

Couldn?t be written any better. Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this article to him. Pretty sure he will have a good read. Thanks for sharing!

boards United States | Reply

3/9/2010 6:15:54 PM #

bettertrades

I personally have embraced the new technologies and the CMS platforms, I think the new tools only make the web designs better. I am glad that new technologies are coming out in web design that make things easier, improved, and better looking for design.

bettertrades United States | 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