Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
180
Drag Drop doesn't work when debugging
posted

I have two different Windows PC's that I use for development.  One one of the two, when I run my application through the Visual Studio interface (by simply pressing Start), the Drag Over method is never called, nor is the Drop method.  On the second machine, the exact same code performs as expected, allowing drag and drop.  Another twist - on the failing machine, if I compile the application and then run the compiled version from outside of Visual Studio, it works as designed.

Do you have any suggestions on what needs to change on my failing machine to allow this functionality to be demonstrated and tested from within Visual Studio?

Thanks

Scott

Parents
No Data
Reply
  • 34810
    Offline posted

    Hello Scott,

    I have done an initial investigation into the issue that you are seeing, and at the moment, I'm unsure why this would fail in Visual Studio when in debug mode, but work normally when not. There are a few pieces of information I would like to gather from you in this case though. Would it be possible for you to please provide some information regarding the following?

    1. Can you please confirm that you are using the Infragistics Drag and Drop Framework in this case? This is more of a sanity check, but the event names that you have listed are the same as the built-in WPF Drag and Drop frameworks, and so I would just like to be sure.

    2. Which version of Visual Studio is the failing machine using? Have you tested on other versions of Visual Studio as well? 

    3. What operating system is the failing machine using?

    4. Assuming that point 1 is confirmed, what is the specific version of Infragistics for WPF controls that you are using?

    If I had to guess at this, I would say that it seems like the debugger in Visual Studio is somehow stealing focus, or perhaps the XAML debug tools in Visual Studio 2017 are turned on and are somehow interfering with the drag and drop framework. I cannot say for sure at the moment, but the pieces of information listed above may help.

    Please let me know if you have any other questions or concerns on this matter.

Children