[ 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 pressed and held.
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
Public Shared Event ShutterKeyHalfPressed As EventHandler
public static event EventHandler ShutterKeyHalfPressed
This event is triggered when the hardware shutter button is pressed and held for approximately 800 milliseconds.
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.
Windows Phone OS
Supported in: 8.1, 8.0, 7.1