title: Multiple Showdialog
body: <p>I have a main window which calls another window with <code>ShowDialog()</code>, lets call it window A. Window A calls another window also with <code>ShowDialog()</code>, lets call it window B. </p>
  
  <p>Whenever window B is closed using <code>Close()</code>, I want Window A to be shown, not the main window.  </p>
  
  <p>How am I supposed to do that? I already tried using <code>this.Owner</code>, <code>this.Focus</code>, etc. none of them work.</p>
  
  <p>Note: I am using WPF</p>
  
  <p>here is my code from main window:</p>
  
  <p><code>WindowsA WA = new WindowsA(); WA.showDialog();</code></p>
  
  <p>at <code>WindowsA</code>, i call another window <code>WindowsB</code>:</p>
  
  <p><code>WindowsB WB = new WindowsB(); WB.showDialog();</code></p>
  
  <p>from <code>WindowsB</code>, I pressed button to close:</p>
  
  <p><code>Close();</code></p>
  
  <p>Where should I put the owner? </p>