Reputation: 1450
I am making a app for windows phone. I use visual studio 2010 and the windows phone sdk which includes the windows phone emulator. My program crashes when i lock the phone's screen (actual device). So i decided to fix this issue. but now i found out that there is no way to debug this because the emulators screen can't be locked.
Is there any way to lock (screen of) the window phone emulator?
Upvotes: 2
Views: 1495
Reputation: 4081
For windows 8 emulators you can also press the power button with your mouse:
Upvotes: 0
Reputation: 12658
Press F12
This is what msdn says about it
To lock the screen in the emulator by using the keyboard With the emulator open, press F12 on your computer keyboard twice. The F12 key emulates the power button on the phone. The first key press turns off the display. The second key press turns the display on again with the lock screen engaged. You can unlock the screen by using the mouse to slide the lock screen upward.
I hope it would work for Windows Phone 7 as well. but not sure
Upvotes: 2
Reputation: 665
In Visual Studio 2012 for Windows Phone 8, you can simulate lock screen through Visual Studio's Simulation Dashboard under Tools menu.
Upvotes: 1
Reputation: 93561
There are replacement emulator ROMS that some clever developers have created/hacked, like http://www.howtogeek.com/howto/13488/test-all-features-of-windows-phone-7-on-your-pc/
They enable additional features, including screen lock/unlock, that MS chose to turn off in the basic emulator.
Best try find the latest, and best-rated, version of these replacement ROMS before attempting them.
This modified emulator image is not official, and isn’t sanctioned by Microsoft. Use your own judgment when choosing to download and use the emulator
Upvotes: 1