PhotoCamera.AutoFocusCompleted Event

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

Occurs after the focus operation is complete.

Namespace: Microsoft.Devices
Assembly: Microsoft.Phone (in Microsoft.Phone.dll)
XMLNS for XAML: Not mapped to an xmlns.

Syntax

Public Event AutoFocusCompleted As EventHandler(Of CameraOperationCompletedEventArgs)
public event EventHandler<CameraOperationCompletedEventArgs> AutoFocusCompleted
<object AutoFocusCompleted="EventHandler<CameraOperationCompletedEventArgs>" .../>

Remarks

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) method.

For more information about how to implement this member, see How to use camera focus in an app for Windows Phone 8.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1

Platforms

Windows Phone

See Also

Reference

PhotoCamera Class

Microsoft.Devices Namespace