C# Class PhotoSharingApp.Universal.ViewModels.CreateCategoryViewModel

ViewModel for view that lets the user enter details for a new category and kicks off the creation process.
Inheritance: ViewModelBase
Show file Open project: Microsoft/Appsample-Photosharing

Public Methods

Method Description
CreateCategory ( ) : Task

Starts creating a new category and handles error messaging.

CreateCategoryViewModel ( IPhotoService photoService, IDialogService dialogService ) : System

Creates a new instance.

LoadState ( ) : System.Threading.Tasks.Task

Loads the state.

Private Methods

Method Description
Category_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void

Method Details

CreateCategory() public method

Starts creating a new category and handles error messaging.
public CreateCategory ( ) : Task
return Task

CreateCategoryViewModel() public method

Creates a new instance.
public CreateCategoryViewModel ( IPhotoService photoService, IDialogService dialogService ) : System
photoService IPhotoService The photo service.
dialogService IDialogService The dialog service.
return System

LoadState() public method

Loads the state.
public LoadState ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task