Algorath
Algorath

Reputation: 91

Windows Phone 8.1 CameraButton Alternative?

Long story short, I'm a) Building a Windows Universal App and b) Want to use the Default (read: hardware) camera/shutter button.

Specifically, I'm looking for something akin to CameraButtons from Microsoft.Device (Note: adding it will mess up with mscorlib which means Msoft won't support.)

Unfortunately I've seemed upon a snag - I've found a lack of replacements, or even documentation.

Naturally my first recourse was teh googlez, after which I perused the Windows.Phone dll but to no avail.

So the question is... does an alternative exist? Will have I have to roll my own freaking dll just to use a hardware button?

Upvotes: 0

Views: 69

Answers (1)

Rob Caplan - MSFT
Rob Caplan - MSFT

Reputation: 21899

In a Windows Phone Runtime app use the HardwareButtons class and its CameraPressed, CameraHalfPressed, and CameraReleased events.

An easy way to find classes relevant to your app's frameworks is to open the Object Browser in your Visual Studio project and scope it to "My Solution" to search just available classes and methods.

Upvotes: 1

Related Questions