Emulator ermitteln (WP7)

Aus Byte-Welt Wiki
Zur Navigation springenZur Suche springen

Mit Microsoft.Devices.Environment.DeviceType lässt sich herausfinden ob die Anwendung im Emulator läuft oder auf einem echten Gerät. Im echten Gerät ist der Inhalt Microsoft.Devices.DeviceType.Device im Emulator Microsoft.Devices.DeviceType.Emulator