Windows Phone 72011. 4. 22. 13:50

WMAppManifest.xml 에

 

<Capability Name="ID_CAP_IDENTITY_DEVICE"/>

 

를 추가하고

 

string model = null;
object theModel = null;
 
if (Microsoft.Phone.Info.DeviceExtendedProperties.TryGetValue("DeviceName", out theModel))
    model = theModel as string;
MessageBox.Show(model);

 

를 코딩하면 된다.

 

출처 : http://www.nickharris.net/2011/01/finding-the-device-model-on-windows-phone-7/

Posted by 동동(이재동)