title: Getting Windows Phone version and device name in Windows Phone 8.1 XAML
body: <p>In Windows Phone 8 Silverlight I use</p>
  
  <pre><code> Environment.OSVersion.ToString()
  </code></pre>
  
  <p>to get Windows Phone version and</p>
  
  <pre><code>DeviceStatus.DeviceManufacturer+" "+DeviceStatus.DeviceName
  </code></pre>
  
  <p>to get device name.</p>
  
  <p>These APIs no longer work with Windows Phone 8.1 XAML. I have found</p>
  
  <pre><code>Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation()
  </code></pre>
  
  <p>this seems to return the manufacturer and device name but OS is returned as just "Windows Phone". </p>
  
  <p>Is there a way to get the exact Windows phone version?</p>