C# Class PhotoSharingApp.Universal.ViewModels.LeaderboardViewModel

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

Public Methods

Method Description
LeaderboardViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IDialogService dialogService ) : System.Threading.Tasks

Initializes a new instance of the LeaderboardViewModel class.

LoadState ( ) : System.Threading.Tasks.Task

Loads the state.

Private Methods

Method Description
OnCategorySelected ( Category category ) : void

Action to take when a photo has been selected

OnPhotoSelected ( Photo photo ) : void

Action to take when a photo has been selected

OnUserSelected ( User user ) : void

Action to take when a user has been selected.

Method Details

LeaderboardViewModel() public method

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

LoadState() public method

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