HardwareButtons.CameraReleased 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
当用户释放硬件相机按钮时发生。
// Register
static event_token CameraReleased(EventHandler<CameraEventArgs> const& handler) const;
// Revoke with event_token
static void CameraReleased(event_token const* cookie) const;
// Revoke with event_revoker
static HardwareButtons::CameraReleased_revoker CameraReleased(auto_revoke_t, EventHandler<CameraEventArgs> const& handler) const;
public static event System.EventHandler<CameraEventArgs> CameraReleased;
function onCameraReleased(eventArgs) { /* Your code */ }
Windows.Phone.UI.Input.HardwareButtons.addEventListener("camerareleased", onCameraReleased);
Windows.Phone.UI.Input.HardwareButtons.removeEventListener("camerareleased", onCameraReleased);
- or -
Windows.Phone.UI.Input.HardwareButtons.oncamerareleased = onCameraReleased;
Public Shared Custom Event CameraReleased As EventHandler(Of CameraEventArgs)