HardwareButtons 类

定义

提供对手机硬件按钮的访问。

public ref class HardwareButtons abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Phone.PhoneContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
class HardwareButtons final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Phone.PhoneContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
public static class HardwareButtons
Public Class HardwareButtons
继承
Object Platform::Object IInspectable HardwareButtons
属性

Windows 要求

设备系列
Windows Mobile Extension SDK (在 10.0.10240.0 中引入)
API contract
Windows.Phone.PhoneContract (在 v1.0 中引入)

注解

Windows Phone 8

此 API 仅在本机应用中受支持。

事件

BackPressed

当用户按下硬件“后退”按钮时发生。

CameraHalfPressed

当用户半中按硬件相机按钮时发生。

CameraPressed

当用户按下硬件相机按钮时发生。

CameraReleased

当用户释放硬件相机按钮时发生。

适用于

另请参阅