Windows Universal Device check

Simple Way to find out the device in which an universal application is running like surface or Phone.

 using Windows.Security.ExchangeActiveSyncProvisioning;

var device = (new EasClientDeviceInformation().OperatingSystem != "WindowsPhone") ? "I am Windows" : "I am Window Phone";