C# 클래스 LearnLanguages.Navigation.Navigator

To use this, just call RegisterPage. This automatically does the following: 1) Associates the page to the proper NavigationSet. If this does not exist, it first creates the NavigationSet. 2) Associates the NavigationPanel to the ShellViewModel. 3) Populates the NavigationPanel with the proper ViewModels. 4) Handles NavigationRequestedEventMessages by injecting the proper page's viewmodel into the shellviewmodel.
파일 보기 프로젝트 열기: ibgib/LearnLanguages

Private Properties

프로퍼티 타입 설명
GetShellViewModel IShellViewModel
GetSortedNavigationSets IList

공개 메소드들

메소드 설명
GetCurrentPage ( ) : IPage

Returns the current page. Can return null if the current page has been freed or if there is no current page (though this would be odd, if not an exception).

GetNavigationPage ( string pageIdString ) : IPage
GetPreviousPage ( ) : IPage
GetUniqueIdText ( IPage page ) : string
NavigateTo ( IPage targetPage ) : bool

Injects the page.ContentViewModel into the ShellViewModel, publishing event messages along the way.

NavigateTo ( string targetPageUniqueIdText ) : bool
Navigator ( ) : Caliburn.Micro
RefreshNavigationPanel ( ) : void
RegisterPage ( IPage page ) : void
UnregisterPage ( IPage page ) : void

비공개 메소드들

메소드 설명
GetShellViewModel ( ) : IShellViewModel
GetSortedNavigationSets ( ) : IList

메소드 상세

GetCurrentPage() 공개 메소드

Returns the current page. Can return null if the current page has been freed or if there is no current page (though this would be odd, if not an exception).
public GetCurrentPage ( ) : IPage
리턴 IPage

GetNavigationPage() 공개 메소드

public GetNavigationPage ( string pageIdString ) : IPage
pageIdString string
리턴 IPage

GetPreviousPage() 공개 메소드

public GetPreviousPage ( ) : IPage
리턴 IPage

GetUniqueIdText() 공개 메소드

public GetUniqueIdText ( IPage page ) : string
page IPage
리턴 string

NavigateTo() 공개 메소드

Injects the page.ContentViewModel into the ShellViewModel, publishing event messages along the way.
public NavigateTo ( IPage targetPage ) : bool
targetPage IPage
리턴 bool

NavigateTo() 공개 메소드

public NavigateTo ( string targetPageUniqueIdText ) : bool
targetPageUniqueIdText string
리턴 bool

Navigator() 공개 메소드

public Navigator ( ) : Caliburn.Micro
리턴 Caliburn.Micro

RefreshNavigationPanel() 공개 메소드

public RefreshNavigationPanel ( ) : void
리턴 void

RegisterPage() 공개 메소드

public RegisterPage ( IPage page ) : void
page IPage
리턴 void

UnregisterPage() 공개 메소드

public UnregisterPage ( IPage page ) : void
page IPage
리턴 void