title: How to obtain screen size from xaml?
body: <p>I'm using wpf on C# to design GUI, and I want to get screen size (The value of Width and Height) from xaml code.</p>
  
  <p>I knew how to get them from C# code as</p>
  
  <pre><code>   Width = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Width;
     Height = System.Windows.Forms.Screen.PrimaryScreen.Bounds.Height;
  </code></pre>
  
  <p>But I don't know how to get them from <code>XAML</code> code.</p>