HardwareButtons HardwareButtons HardwareButtons Class

Definition

Provides access to the phone's hardware buttons.

public static class HardwareButtonspublic static class HardwareButtonsPublic Static Class HardwareButtons
Attributes
Windows 10 requirements
Device family
Windows Mobile Extension SDK (introduced v10.0.10240.0)
API contract
Windows.Phone.PhoneContract (introduced v1)

Remarks

Windows Phone 8

This API is supported in native apps only.

Events

BackPressed BackPressed BackPressed

Occurs when the user presses the hardware Back button.

public static event EventHandler BackPressedpublic static event EventHandler BackPressedPublic Static Event BackPressed
Attributes

CameraHalfPressed CameraHalfPressed CameraHalfPressed

Occurs when the user presses the hardware camera button halfway.

public static event EventHandler CameraHalfPressedpublic static event EventHandler CameraHalfPressedPublic Static Event CameraHalfPressed
Attributes

CameraPressed CameraPressed CameraPressed

Occurs when the user presses the hardware camera button.

public static event EventHandler CameraPressedpublic static event EventHandler CameraPressedPublic Static Event CameraPressed
Attributes
See Also

CameraReleased CameraReleased CameraReleased

Occurs when the user releases the hardware camera button.

public static event EventHandler CameraReleasedpublic static event EventHandler CameraReleasedPublic Static Event CameraReleased
Attributes