Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 WPF Project ran in debug or release will not allow drag and drop to any control

I had started a question here: WPF drag and drop files onto TreeView from windows explorer but I just discovered this is a totally different problem that what I thought it was.

I have an extremely simple test case.

I was using a treeview but if I use a simple listbox with no code just the following xaml

<StackPanel Orientation="Vertical">
    <ListBox Height="312" Background="#FFBDD6FF" AllowDrop="True"/>
</StackPanel>

If I run the project in expression blend and drag a file over the listbox I see the arrow and the little square below it that incdicates you can drag and drop.

If I run the same project in visual studio and drag a file over the listbox I get a black circle with a line through it.

What could be wrong with my computer or code that is causing that?

like image 548
249076 Avatar asked Sep 20 '11 13:09

249076


People also ask

How do I change debug to release in Visual Studio?

In Solution Explorer, right-click the project and choose Properties. In the side pane, choose Build (or Compile in Visual Basic). In the Configuration list at the top, choose Debug or Release.

What is the difference between debug and release mode in Visual Studio?

Release vs Debug and it depends on what language you are using, Debug includes debugging information in the compiled files (allowing easy debugging) while Release usually has optimizations enabled. They each define different symbols that can be checked in your program, but they are language-specific macros.

What is debug mode and release mode?

Debug Mode: When we are developing the application. Release Mode: When we are going to production mode or deploying the application to the server. 2). Code optimization. Debug Mode: The debug mode code is not optimized.

What is release Visual Studio?

Visual Studio has two default build options, Debug and Release. The release build is the optimized version of your app and it has its associated pdb file. The debug build is the one that you interact with most when you're creating the application.


1 Answers

Is it possible that you are running Visual Studio as Administrator and Expression Blend normally?

like image 193
Dominik Avatar answered Oct 01 '22 10:10

Dominik