C# Class PhotoSharingApp.Universal.ViewModels.ProfileViewModel

ViewModel for Profile view.
Inheritance: ViewModelBase
Mostrar archivo Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

Method Description
LoadState ( ) : System.Threading.Tasks.Task

Loads the state.

LoadState ( ProfileViewModelArgs viewModelArgs ) : System.Threading.Tasks.Task

Loads the state.

ProfileViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IDialogService dialogService ) : System

Initializes a new instance of the ProfileViewModel class.

Private Methods

Method Description
OnDeletePhoto ( Photo photo ) : void
OnPhotoSelected ( Photo photo ) : void

Action to take when a photo has been selected

OnPhotosLoadingFinished ( ) : void
OnRefresh ( ) : System.Threading.Tasks.Task
OnSetProfilePhoto ( Photo photo ) : void
PhotosCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
RunCounterAnimations ( ) : void

Method Details

LoadState() public method

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

LoadState() public method

Loads the state.
public LoadState ( ProfileViewModelArgs viewModelArgs ) : System.Threading.Tasks.Task
viewModelArgs ProfileViewModelArgs The arguments.
return System.Threading.Tasks.Task

ProfileViewModel() public method

Initializes a new instance of the ProfileViewModel class.
public ProfileViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IDialogService dialogService ) : System
navigationFacade INavigationFacade The navigation facade.
photoService IPhotoService The photo service.
dialogService IDialogService The dialog service.
return System