C# 클래스 PhotoSharingApp.Universal.ViewModels.CameraViewModel

The ViewModel for the camera view.
상속: ViewModelBase, ICameraView
파일 보기 프로젝트 열기: Microsoft/Appsample-Photosharing 1 사용 예제들

공개 메소드들

메소드 설명
CameraViewModel ( ICameraEngine cameraEngine, INavigationFacade navigationFacade, IDialogService dialogService ) : System

Initializes a new instance of the CameraViewModel class.

LoadCamera ( CaptureElement capturePreview ) : System.Threading.Tasks.Task

Loads the camera.

LoadState ( CameraViewModelArgs args ) : System.Threading.Tasks.Task

Loads the state.

SetMediaCaptureSource ( MediaCapture mediaCapture ) : void

Sets the media capture source to enable live preview in the UI.

UnloadCamera ( ) : System.Threading.Tasks.Task

Unloads the camera.

비공개 메소드들

메소드 설명
OnOpenPicture ( ) : void
OnSwitchCamera ( ) : void
OnSwitchFlash ( ) : void
OnTakePhoto ( ) : void

메소드 상세

CameraViewModel() 공개 메소드

Initializes a new instance of the CameraViewModel class.
public CameraViewModel ( ICameraEngine cameraEngine, INavigationFacade navigationFacade, IDialogService dialogService ) : System
cameraEngine ICameraEngine The camera engine.
navigationFacade INavigationFacade The navigation facade.
dialogService IDialogService The dialog service.
리턴 System

LoadCamera() 공개 메소드

Loads the camera.
public LoadCamera ( CaptureElement capturePreview ) : System.Threading.Tasks.Task
capturePreview Windows.UI.Xaml.Controls.CaptureElement The capture preview.
리턴 System.Threading.Tasks.Task

LoadState() 공개 메소드

Loads the state.
public LoadState ( CameraViewModelArgs args ) : System.Threading.Tasks.Task
args CameraViewModelArgs The arguments.
리턴 System.Threading.Tasks.Task

SetMediaCaptureSource() 공개 메소드

Sets the media capture source to enable live preview in the UI.
public SetMediaCaptureSource ( MediaCapture mediaCapture ) : void
mediaCapture Windows.Media.Capture.MediaCapture The media capture object.
리턴 void

UnloadCamera() 공개 메소드

Unloads the camera.
public UnloadCamera ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task