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?
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.
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.
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.
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.
Is it possible that you are running Visual Studio as Administrator and Expression Blend normally?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With