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
Mostrar archivo Open project: Microsoft/TVHelpers

Public Methods

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

Sets the current ViewModel that is active and visible.

Protected Methods

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

Private Methods

Method Description
CurrentVM_PropertyChanged ( object sender, System e ) : void

Method Details

CollectionViewModelBase() public method

public CollectionViewModelBase ( ) : MediaAppSample.Core.Models
return MediaAppSample.Core.Models

OnBackNavigationRequested() protected method

protected OnBackNavigationRequested ( ) : bool
return bool

OnForwardNavigationRequested() protected method

protected OnForwardNavigationRequested ( ) : bool
return bool

OnLoadStateAsync() protected method

protected OnLoadStateAsync ( LoadStateEventArgs e, bool isFirstRun ) : System.Threading.Tasks.Task
e LoadStateEventArgs
isFirstRun bool
return System.Threading.Tasks.Task

OnSaveStateAsync() protected method

protected OnSaveStateAsync ( SaveStateEventArgs e ) : System.Threading.Tasks.Task
e SaveStateEventArgs
return System.Threading.Tasks.Task

SetCurrentAsync() public method

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