HardwareButtons HardwareButtons HardwareButtons HardwareButtons Class

Provides access to the phone's hardware buttons.

Syntax

Declaration

public static class HardwareButtonspublic static class HardwareButtonsPublic Static Class HardwareButtons

Remarks

Windows Phone 8

This API is supported in native apps only.

Events summary

Occurs when the user presses the hardware Back button.

Occurs when the user presses the hardware camera button halfway.

Occurs when the user presses the hardware camera button.

Occurs when the user releases the hardware camera button.

Events

  • BackPressed
    BackPressed
    BackPressed
    BackPressed

    Occurs when the user presses the hardware Back button.

    public static event EventHandler BackPressedpublic static event EventHandler BackPressedPublic Static Event BackPressed
  • CameraHalfPressed
    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
  • CameraPressed
    CameraPressed
    CameraPressed
    CameraPressed

    Occurs when the user presses the hardware camera button.

    public static event EventHandler CameraPressedpublic static event EventHandler CameraPressedPublic Static Event CameraPressed
  • CameraReleased
    CameraReleased
    CameraReleased
    CameraReleased

    Occurs when the user releases the hardware camera button.

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

Device family

Windows Mobile Extension SDK (introduced v10.0.10240.0)

API contract

Windows.Phone.PhoneContract (introduced v1)

Attributes

Windows.Foundation.Metadata.StaticAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.StaticAttribute

Details

Assembly

Windows.Phone.UI.Input.dll