by Administrator
22. November 2011 20:14
When executing my Multi Targeted, Solr Contrib WPF Desktop application there is a considerable delay from the time the button is clicked to the time the event is raised. If you observe the behavior closely you can see that the button remains depressed (layout) for a second or two and once it is released the event fires. This behavior does not occur with the Silverlight version which uses the same exact code/xaml.
This behavior is specific to DEBUG mode. If you launch the WPF desktop application in release mode (Ctrl-F5) you will get expected behavior. A workaround (that I provide in the following Microsoft bug report) is to launch in release mode and then attach a debugger to your running application.
If you are experiencing this issue please click on the following link and vote for the fix:
https://connect.microsoft.com/VisualStudio/feedback/details/705650/wpf-button-clicks-in-vs-11-are-slow-when-running-in-vs#