C# Class PhotoSharingApp.Universal.ViewModels.CategoriesViewModel

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

Public Methods

Method Description
CategoriesViewModel ( INavigationFacade navigationFacade, IPhotoService photoService, IAuthEnforcementHandler authEnforcementHandler, IDialogService dialogService ) : System

Initializes a new instance of the CategoriesViewModel class.

InstantiateHeroImageSlideShowTimer ( ) : void

Instantiates the hero image slideshow timer.

LoadState ( ) : System.Threading.Tasks.Task

Loads the state.

StartHeroImageSlideShow ( ) : void

Starts a timer which cycles through hero images.

StopHeroImageSlideShow ( ) : void

Stops hero image slide show.

Private Methods

Method Description
OnCategorySelected ( CategoryPreview categoryPreview ) : void
OnGiveGold ( Photo photo ) : void
OnHeroImageSelected ( Photo photo ) : void
OnPhotoThumbnailSelected ( PhotoThumbnail photoThumbnail ) : void
OnUserSelected ( User user ) : void

Method Details

CategoriesViewModel() public method

Initializes a new instance of the CategoriesViewModel class.
public CategoriesViewModel ( 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

InstantiateHeroImageSlideShowTimer() public method

Instantiates the hero image slideshow timer.
public InstantiateHeroImageSlideShowTimer ( ) : void
return void

LoadState() public method

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

StartHeroImageSlideShow() public method

Starts a timer which cycles through hero images.
public StartHeroImageSlideShow ( ) : void
return void

StopHeroImageSlideShow() public method

Stops hero image slide show.
public StopHeroImageSlideShow ( ) : void
return void