C# Class PhotoSharingApp.Universal.ViewModels.PhotoDetailsViewModel

The ViewModel for the photo details view.
Inheritance: ViewModelBase
Show file Open project: Microsoft/Appsample-Photosharing Class Usage Examples

Public Methods

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

Load the state.

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

Load the state.

PhotoDetailsViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService ) : System

Initializes a new instance of the PhotoDetailsViewModel class.

Private Methods

Method Description
OnCancelDeletePhoto ( ) : void
OnCancelSetProfile ( ) : void
OnDeleteAnnotation ( ) : void
OnDeletePhoto ( ) : void
OnEditPhoto ( ) : void
OnGiveGold ( ) : void
OnGotoCamera ( ) : void
OnReportAnnotation ( ) : void
OnReportPhoto ( ReportReason reason ) : void
OnSetProfilePhoto ( ) : void
OnUserSelected ( User user ) : void
ShowDetails ( ) : System.Threading.Tasks.Task

Load details for a photo.

Method Details

LoadState() public method

Load the state.
public LoadState ( PhotoDetailsViewModelArgs args ) : System.Threading.Tasks.Task
args PhotoDetailsViewModelArgs The PhotoDetailsViewModelArgs.
return System.Threading.Tasks.Task

LoadState() public method

Load the state.
public LoadState ( PhotoDetailsViewModelPhotoIdArgs args ) : System.Threading.Tasks.Task
args PhotoDetailsViewModelPhotoIdArgs The PhotoDetailsViewModelPhotoIdArgs.
return System.Threading.Tasks.Task

PhotoDetailsViewModel() public method

Initializes a new instance of the PhotoDetailsViewModel class.
public PhotoDetailsViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService ) : System
navigationFacade INavigationFacade The navigation facade.
photoService IPhotoService The photo service.
authEnforcementHandler IAuthEnforcementHandler The auth enforcement handler.
dialogService IDialogService The dialog service.
return System