title: How to set WPF window position in secondary display
body: <p>I have two displays. I want to make a media player and I want to play video full screen on my secondary display. So I’m trying to make a media player using WPF</p>
  
  <p>Here is the code so far I wrote </p>
  
  <pre><code>Screen[] _screens = Screen.AllScreens;
  System.Drawing.Rectangle ractagle = _screens[1].Bounds;
  //player is  my window
  player.WindowState = WindowState.Maximized;
  player.WindowStyle = WindowStyle.None;
  
  player.Left = ractagle.X;
  player.Top = ractagle.Y;
  
  
  // MediaControl is an media elements
  MediaControl.Height = ractagle.Height;
  MediaControl.Width = ractagle.Width;
  </code></pre>
  
  <p>But somehow it’s just playing on my first display. 
  Any kind of help is very much appreciated. </p>