This topic has not yet been rated - Rate this topic

CameraButtons.ShutterKeyPressed Event

Windows Phone

March 22, 2012

Occurs when the hardware shutter button receives a full press.

Namespace:  Microsoft.Devices
Assembly:  Microsoft.Phone (in Microsoft.Phone.dll)
public static event EventHandler ShutterKeyPressed

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.

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 Application for Windows Phone.

Windows Phone OS

Supported in: 7.1

Windows Phone

Did you find this helpful?
(1500 characters remaining)