C# Класс PhotoSharingApp.Universal.ViewModels.CameraViewModel

The ViewModel for the camera view.
Наследование: ViewModelBase, ICameraView
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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