PhotoCamera Constructor

July 28, 2014

Initializes a new instance of the PhotoCamera class.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  NameDescription
Public method PhotoCamera() Initializes a new instance of the PhotoCamera class.
Public method PhotoCamera(CameraType) Initializes a new instance of the PhotoCamera class for the specified type of camera.
Top

To account for the Windows Phone execution model, initialize the PhotoCamera object in the OnNavigatedTo(NavigationEventArgs) method and explicitly call the camera Dispose method during the OnNavigatingFrom(NavigatingCancelEventArgs) method. Add event handlers for the PhotoCamera and CameraButtons events in the OnNavigatedTo(NavigationEventArgs) method and remove them in the OnNavigatingFrom(NavigatingCancelEventArgs) method.

For examples and more information about how to implement these members, see How to create a base camera app for Windows Phone 8.

Show:
© 2014 Microsoft