HardwareButtons HardwareButtons HardwareButtons HardwareButtons HardwareButtons Class


Provides access to the phone's hardware buttons.

public : static class HardwareButtons
static struct winrt::Windows::Phone::UI::Input::HardwareButtons
public static class HardwareButtons
Public Shared Class HardwareButtons
// This class does not provide a public constructor.

Windows 10 requirements

Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)


Windows Phone 8

This API is supported in native apps only.


BackPressed BackPressed BackPressed BackPressed BackPressed

Occurs when the user presses the hardware Back button.

CameraHalfPressed CameraHalfPressed CameraHalfPressed CameraHalfPressed CameraHalfPressed

Occurs when the user presses the hardware camera button halfway.

CameraPressed CameraPressed CameraPressed CameraPressed CameraPressed

Occurs when the user presses the hardware camera button.

CameraReleased CameraReleased CameraReleased CameraReleased CameraReleased

Occurs when the user releases the hardware camera button.

See also