有关 Windows Phone 的信息(型号) [英] information about windows phone (model number)
问题描述
我想以编程方式知道设备型号,因为它显示在关于页面 >
我正在使用
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;
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屋!