CameraButtons.ShutterKeyReleased Event

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Occurs when the hardware shutter button is released, after the ShutterKeyPressed event occurs.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)

Syntax

Public Shared Event ShutterKeyReleased As EventHandler
public static event EventHandler ShutterKeyReleased

Remarks

The ShutterKeyReleased event follows the ShutterKeyPressed event after the hardware shutter button is released. A full hardware button press is required; this event does not occur if the hardware shutter button is only half pressed.

To account for the Windows Phone execution model, add the event handler for this event in the OnNavigatedTo(NavigationEventArgs) method. To help release memory related to the camera, remove the event handler for this event in the OnNavigatingFrom(NavigatingCancelEventArgs). For more information about how to use this member for capturing a photo, see How to access the hardware camera shutter button in Windows Phone 8.

This event can also be used for capturing video. When capturing video, the CaptureSource..::.Start method must be called prior to the hardware shutter button press. If the capture source has not started, this event will not fire. For more information about capturing video in your Windows Phone application, see How to record video in a camera app for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

CameraButtons Class

Microsoft.Devices Namespace