获取的Windows Phone版本和设备名称中的Windows Phone 8.1 XAML [英] Getting Windows Phone version and device name in Windows Phone 8.1 XAML
问题描述
在的Windows Phone 8的Silverlight我用
In Windows Phone 8 Silverlight I use
Environment.OSVersion.ToString()
要获得Windows Phone版以及
to get Windows Phone version and
DeviceStatus.DeviceManufacturer+" "+DeviceStatus.DeviceName
获取设备的名称。
to get device name.
这些API不再随着Windows Phone 8.1 XAML工作。我发现
These APIs no longer work with Windows Phone 8.1 XAML. I have found
Windows.Security.ExchangeActiveSyncProvisioning.EasClientDeviceInformation()
这似乎退回制造商和设备名称,但OS返回为只是Windows手机。
this seems to return the manufacturer and device name but OS is returned as just "Windows Phone".
有没有办法得到确切的Windows phone版本?
Is there a way to get the exact Windows phone version?
推荐答案
这是目前尚未在Windows运行时8.1(手机和Windows)成为可能。它看起来像它可能被计划由于莫滕尼尔森和皮特·布朗
This is currently not possible In Windows Runtime 8.1 (Phone and Windows). It does look like it might be planned thanks to Morten Nielsen and Pete Brown
修改:这是现在可以在Windows 10,请参见这个SO回答以及< A HREF =https://www.suchan.cz/2015/08/uwp-quick-tip-getting-device-os-and-app-info/相对=nofollow>这篇文章更实用的功能。
EDIT: This is now possible in Windows 10. See this SO answer as well as this article for more useful features.
这篇关于获取的Windows Phone版本和设备名称中的Windows Phone 8.1 XAML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!