2010-11-25 69 views

回答

20

您可以从Microsoft.Devices.Environment.DeviceType

+6

if(Microsoft.Devices.Environment.DeviceType == Microsoft.Devices.DeviceType.Emulator) – BrokeMyLegBiking 2010-11-25 04:40:52

6
if (System.Environment.DeviceType == DeviceType.Emulator) 
{ 

} 

希望帮助

+0

这似乎在芒果和其他起作用。 – 2011-07-29 05:51:45

4

得到这对于WP 7.5芒果SDK,它已经移动到命名空间Microsoft.Devices

if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator) 
{ 
    //Do Stuff 
} 
相关问题