2010-11-25 74 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 
} 
相關問題