C# Class Alexandria.Common.NavigationHelper

Inheritance: Windows.UI.Xaml.DependencyObject
ファイルを表示 Open project: rit-sse/alexandria-WinRT Class Usage Examples

Private Properties

Property Type Description
CoreDispatcher_AcceleratorKeyActivated void
CoreWindow_PointerPressed void

Public Methods

Method Description
CanGoBack ( ) : bool

Virtual method used by the GoBackCommand property to determine if the Frame can go back.

CanGoForward ( ) : bool

Virtual method used by the GoForwardCommand property to determine if the Frame can go forward.

GoBack ( ) : void

Virtual method used by the GoBackCommand property to invoke the Windows.UI.Xaml.Controls.Frame.GoBack method.

GoForward ( ) : void

Virtual method used by the GoForwardCommand property to invoke the Windows.UI.Xaml.Controls.Frame.GoForward method.

NavigationHelper ( Page page ) : System

Initializes a new instance of the NavigationHelper class.

OnNavigatedFrom ( NavigationEventArgs e ) : void

Invoked when this page will no longer be displayed in a Frame. This method calls SaveState, where all page specific navigation and process lifetime management logic should be placed.

OnNavigatedTo ( NavigationEventArgs e ) : void

Invoked when this page is about to be displayed in a Frame. This method calls LoadState, where all page specific navigation and process lifetime management logic should be placed.

Private Methods

Method Description
CoreDispatcher_AcceleratorKeyActivated ( CoreDispatcher sender, AcceleratorKeyEventArgs e ) : void

Invoked on every keystroke, including system keys such as Alt key combinations, when this page is active and occupies the entire window. Used to detect keyboard navigation between pages even when the page itself doesn't have focus.

CoreWindow_PointerPressed ( CoreWindow sender, PointerEventArgs e ) : void

Invoked on every mouse click, touch screen tap, or equivalent interaction when this page is active and occupies the entire window. Used to detect browser-style next and previous mouse button clicks to navigate between pages.

Method Details

CanGoBack() public method

Virtual method used by the GoBackCommand property to determine if the Frame can go back.
public CanGoBack ( ) : bool
return bool

CanGoForward() public method

Virtual method used by the GoForwardCommand property to determine if the Frame can go forward.
public CanGoForward ( ) : bool
return bool

GoBack() public method

Virtual method used by the GoBackCommand property to invoke the Windows.UI.Xaml.Controls.Frame.GoBack method.
public GoBack ( ) : void
return void

GoForward() public method

Virtual method used by the GoForwardCommand property to invoke the Windows.UI.Xaml.Controls.Frame.GoForward method.
public GoForward ( ) : void
return void

NavigationHelper() public method

Initializes a new instance of the NavigationHelper class.
public NavigationHelper ( Page page ) : System
page Windows.UI.Xaml.Controls.Page A reference to the current page used for navigation. /// This reference allows for frame manipulation and to ensure that keyboard /// navigation requests only occur when the page is occupying the entire window.
return System

OnNavigatedFrom() public method

Invoked when this page will no longer be displayed in a Frame. This method calls SaveState, where all page specific navigation and process lifetime management logic should be placed.
public OnNavigatedFrom ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Event data that describes how this page was reached. The Parameter /// property provides the group to be displayed.
return void

OnNavigatedTo() public method

Invoked when this page is about to be displayed in a Frame. This method calls LoadState, where all page specific navigation and process lifetime management logic should be placed.
public OnNavigatedTo ( NavigationEventArgs e ) : void
e Windows.UI.Xaml.Navigation.NavigationEventArgs Event data that describes how this page was reached. The Parameter /// property provides the group to be displayed.
return void