有关 Windows Phone 的信息(型号) [英] information about windows phone (model number)

查看:19
本文介绍了有关 Windows Phone 的信息(型号)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想以编程方式知道设备型号,因为它显示在关于页面

我正在使用

Microsoft.Phone.Info.DeviceStatus.DeviceName

但它没有帮助并给出了一些其他典型值.请帮助我如何获得上述电话型号/名称.

解决方案

你应该使用 PhoneNameResolver,一个解析像

这样晦涩的设备名称的简单类<块引用>

RM-885_apac_prc_250

更友好的商业名称,如

<块引用>

诺基亚 Lumia 720

这是一个示例代码:

var phone = PhoneNameResolver.Resolve(DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName);SomeTextBox.Text = phone.FullCanonicalName;

这篇博文中的更多信息:http://devblog.ailon.org/devblog/post/2013/01/21/Introducing-PhoneNameResolver%E2%80%93a-lib-to-decipher-Windows-Phone-models.aspx

i want to know the device model number programmatically as it is shown in settings about page

i am currently using

Microsoft.Phone.Info.DeviceStatus.DeviceName

but it doesn't help and gives some other typical value. Please help me how can i get phone model/name as above.

解决方案

You should use PhoneNameResolver, a simple class that resolves the obscure devices names like

RM-885_apac_prc_250

into friendlier commercial names like

NOKIA Lumia 720

Here is a sample code:

var phone = PhoneNameResolver.Resolve(
    DeviceStatus.DeviceManufacturer, DeviceStatus.DeviceName);
SomeTextBox.Text = phone.FullCanonicalName;

More info in this blog post: http://devblog.ailon.org/devblog/post/2013/01/21/Introducing-PhoneNameResolver%E2%80%93a-lib-to-decipher-Windows-Phone-models.aspx

这篇关于有关 Windows Phone 的信息(型号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆