title: C# New window focus
body: <p>My program contains a listview with "SelectionChanged" event. When I'm changing the selected item in the list view I want to open a new window with specific options related to it. But the problem is that the new window appears for a moment and it hides behind the main window. 
  This is a part of my code:</p>
  
  <pre><code>private void display_SelectionChanged(object sender, SelectionChangedEventArgs e)
      {
          var editwindow = new EditWindow();
          editwindow.Show();
          editwindow.Focus();
      }
  </code></pre>
  
  <p>I've also include Focus function in second window when it's initiated. How I could solve this problem?</p>