C# Class MediaAppSample.Core.ViewModels.CollectionViewModelBase

ViewModelBase for views that need to display multiple separate sub-views which might have their own ViewModel instances. This CollectionViewModelBase can contain multiple ViewModels and set a current view model so that the frame can show appropriate status data specific to the current view model.
Inheritance: ViewModelBase
Afficher le fichier Open project: Microsoft/TVHelpers

Méthodes publiques

Méthode Description
CollectionViewModelBase ( ) : MediaAppSample.Core.Models
SetCurrentAsync ( ViewModelBase vm ) : System.Threading.Tasks.Task

Sets the current ViewModel that is active and visible.

Méthodes protégées

Méthode Description
OnBackNavigationRequested ( ) : bool
OnForwardNavigationRequested ( ) : bool
OnLoadStateAsync ( LoadStateEventArgs e, bool isFirstRun ) : System.Threading.Tasks.Task
OnSaveStateAsync ( SaveStateEventArgs e ) : System.Threading.Tasks.Task

Private Methods

Méthode Description
CurrentVM_PropertyChanged ( object sender, System e ) : void

Method Details

CollectionViewModelBase() public méthode

public CollectionViewModelBase ( ) : MediaAppSample.Core.Models
Résultat MediaAppSample.Core.Models

OnBackNavigationRequested() protected méthode

protected OnBackNavigationRequested ( ) : bool
Résultat bool

OnForwardNavigationRequested() protected méthode

protected OnForwardNavigationRequested ( ) : bool
Résultat bool

OnLoadStateAsync() protected méthode

protected OnLoadStateAsync ( LoadStateEventArgs e, bool isFirstRun ) : System.Threading.Tasks.Task
e LoadStateEventArgs
isFirstRun bool
Résultat System.Threading.Tasks.Task

OnSaveStateAsync() protected méthode

protected OnSaveStateAsync ( SaveStateEventArgs e ) : System.Threading.Tasks.Task
e SaveStateEventArgs
Résultat System.Threading.Tasks.Task

SetCurrentAsync() public méthode

Sets the current ViewModel that is active and visible.
public SetCurrentAsync ( ViewModelBase vm ) : System.Threading.Tasks.Task
vm ViewModelBase
Résultat System.Threading.Tasks.Task