C# Класс Alexandria.Common.NavigationHelper

Наследование: Windows.UI.Xaml.DependencyObject
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
CoreDispatcher_AcceleratorKeyActivated void
CoreWindow_PointerPressed void

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

CanGoBack() публичный метод

Virtual method used by the GoBackCommand property to determine if the Frame can go back.
public CanGoBack ( ) : bool
Результат bool

CanGoForward() публичный метод

Virtual method used by the GoForwardCommand property to determine if the Frame can go forward.
public CanGoForward ( ) : bool
Результат bool

GoBack() публичный метод

Virtual method used by the GoBackCommand property to invoke the Windows.UI.Xaml.Controls.Frame.GoBack method.
public GoBack ( ) : void
Результат void

GoForward() публичный метод

Virtual method used by the GoForwardCommand property to invoke the Windows.UI.Xaml.Controls.Frame.GoForward method.
public GoForward ( ) : void
Результат void

NavigationHelper() публичный метод

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.
Результат System

OnNavigatedFrom() публичный метод

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.
Результат void

OnNavigatedTo() публичный метод

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.
Результат void