title: WPF Conversion from SystemParameter units to Device-Independent Units
body: <p>I am trying to make an application that will take up the maximum amount of workarea on screen other than the titlebar and the taskbar.</p>
  
  <p>I cannot use the WindowState.Maximize property in Xaml because I have a linkedbox that has generated buttons based on items in a configuration file.</p>
  
  <p>My question is, since SystemParameter.WorkArea.Height/Width give me the measurements in pixels, but Height in XAML expects the measurement in DIU(DIP) Device-Independent Units. Is there a way to convert between the two? </p>
  
  <p>At the moment when I set the window size to the system.parameter resolution it does not cover the entire working area and leaves a small strip uncovered, which I assume is some Windows 10 area used for resizing or letting the user perform other functions I do not need.</p>
  
  <p>Thank you for your help.</p>