title: Window.Current.Bounds height without status bar, per orientation
body: <p>I'm calculating the screen width and height, and it seems to be off. Looks like the status bar height or width is included in <code>Window.Current.Bounds</code>.</p>
  
  <p>It's supposed to be 32px in height for portrait and 72px in landscape, but it seems to scale, since <code>Windows.UI.ViewManagement.StatusBar.GetForCurrentView().OccludedRect.Height</code> shows 26.6667 and 60.</p>
  
  <p>What's the best way to get my Screen height and width, which excludes the status bar?</p>
  
  <pre><code>private void LayoutControls()
  {
      var bounds = Window.Current.Bounds;
      var scale = DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;
      var statusBar = Windows.UI.ViewManagement.StatusBar.GetForCurrentView().OccludedRect;
  
      if (bounds.Width &lt; bounds.Height)
      {
          // Portrait
          bounds.Height -= 32d / scale;
      }
      else
      {
          // Landscape
          bounds.Width -= 72d / scale;
      }
  
      // do something with new bounds
  }
  </code></pre>
  
  <p>It's never 32 and never 72. The <code>/ scale</code> works for some DPI phones but not 1080p. Investigating <code>Windows.UI.ViewManagement.StatusBar.GetForCurrentView().OccludedRect</code> gives what seems to be the correct height, but does not update with the <code>Window.Current.SizeChanged</code> event.</p>
  
  <p>Any ideas?</p>