DeviceStatus Events
While DeviceStatus
allows you to retrieve device information, it also includes the following two events:
KeyboardDeployedChanged
PowerSourceChanged
If the phone device has a hardware keyboard, such as a sliding keyboard, the KeyboardDeployedChanged
event allows you to detect when the keyboard is extended.
You can subscribe to the KeyboardDeployedChanged
event as shown:
DeviceStatus.KeyboardDeployedChanged += HandleKeyboardDeployedChanged;
The event handler can be used to determine whether the keyboard is deployed using the ...
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.