C# 클래스 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.
상속: ViewModelBase
파일 보기 프로젝트 열기: Microsoft/TVHelpers

공개 메소드들

메소드 설명
CollectionViewModelBase ( ) : MediaAppSample.Core.Models
SetCurrentAsync ( ViewModelBase vm ) : System.Threading.Tasks.Task

Sets the current ViewModel that is active and visible.

보호된 메소드들

메소드 설명
OnBackNavigationRequested ( ) : bool
OnForwardNavigationRequested ( ) : bool
OnLoadStateAsync ( LoadStateEventArgs e, bool isFirstRun ) : System.Threading.Tasks.Task
OnSaveStateAsync ( SaveStateEventArgs e ) : System.Threading.Tasks.Task

비공개 메소드들

메소드 설명
CurrentVM_PropertyChanged ( object sender, System e ) : void

메소드 상세

CollectionViewModelBase() 공개 메소드

public CollectionViewModelBase ( ) : MediaAppSample.Core.Models
리턴 MediaAppSample.Core.Models

OnBackNavigationRequested() 보호된 메소드

protected OnBackNavigationRequested ( ) : bool
리턴 bool

OnForwardNavigationRequested() 보호된 메소드

protected OnForwardNavigationRequested ( ) : bool
리턴 bool

OnLoadStateAsync() 보호된 메소드

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

OnSaveStateAsync() 보호된 메소드

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

SetCurrentAsync() 공개 메소드

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