C# Class StringResourceDemo.Common.NavigationHelper

Inheritance: Windows.UI.Xaml.DependencyObject
Afficher le fichier Open project: jayway/T4ResourceInterface

Private Properties

Свойство Type Description
CoreDispatcher_AcceleratorKeyActivated void
CoreWindow_PointerPressed void

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

CanGoForward() public méthode

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

GoBack() public méthode

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

GoForward() public méthode

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

NavigationHelper() public méthode

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. ///
Résultat System

OnNavigatedFrom() public méthode

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. ///
Résultat void

OnNavigatedTo() public méthode

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. ///
Résultat void