title: Xaml unhandled exception popup not appearing
body: <p>Hey I am having an issue with my error handling. Basically I am trying to show a popup allowing the user to input any steps they took when an unhandled exception happens. I can do it fine if I write it as a regular c# popup but this is not the case if I create the popup in xaml. If I create it in xaml I am getting a<br>
  "our app has entered a break state, but there is no code to show because all threads were executing external code" message and the application closes.</p>
  
  <p>Now if I add the popup to an onclick event it shows up correctly.</p>
  
  <pre><code> AppDomain currentDomain = AppDomain.CurrentDomain;
          currentDomain.UnhandledException += new 
   UnhandledExceptionEventHandler(ShowExceptionPopUp);
  </code></pre>
  
  <p>And the show ExceoptionPopUp method</p>
  
  <pre><code>   ErrorPopup error = new ErrorPopup(sender, e);
  </code></pre>
  
  <p>And inside the ErrorPop class</p>
  
  <pre><code>  InitializeComponent();
          this.errorSender = errorSender;
          this.eventArgs = eventArgs;
  </code></pre>
  
  <p>If I step through it finishes on InitializeComponent(). I am wondering could someone shed some light on this issue for me?</p>
  
  <p>Thanks very much in advance.</p>