在 Windows Phone 8.1 XAML 中获取 Windows Phone 版本和设备名称 [英] 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
获取设备名称.
这些 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 Phone"返回.
this seems to return the manufacturer and device name but OS is returned as just "Windows Phone".
有没有办法获得确切的 Windows 手机版本?
Is there a way to get the exact Windows phone version?
推荐答案
这在 Windows 运行时 8.1(电话和 Windows)中目前是不可能的.由于 Morten Nielsen 和 Pete Brown
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 答案以及这篇文章了解更多有用的功能.
EDIT: This is now possible in Windows 10. See this SO answer as well as this article for more useful features.
这篇关于在 Windows Phone 8.1 XAML 中获取 Windows Phone 版本和设备名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!