2010-11-25 17 views

Antwort

20

Sie hilft dies von Microsoft.Devices.Environment.DeviceType

+6

if (Microsoft.Devices.Environment.DeviceType == Microsoft.Devices.DeviceType.Emulator) – BrokeMyLegBiking

+1

arbeitet mit # WP8 zu # w00t –

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

} 

Hoffnung, die

+0

Dies funktioniert in Mango und weiter scheint es. –

4

Für wp 7.5 Mango sdk bekommen kann, hat es den Namespace Microsoft.Devices bewegt

if (Microsoft.Devices.Environment.DeviceType == DeviceType.Emulator) 
{ 
    //Do Stuff 
} 
Verwandte Themen