title: Finding the handle to a WPF window
body: <p>Windows forms had a property win1.Handle which, if I recall, returns the handle of the main window handle?</p>
  <p>Is there an equivalent way to get the handle of a WPF Window?</p>
  <p>I found the following code online,</p>
  <pre><code>IntPtr windowHandle = 
      new WindowInteropHelper(Application.Current.MainWindow).Handle;
  </code></pre>
  <p>But I don't think that will help me because my application has multiple windows.</p>