C# Класс Forecast.it.Common.NavigationHelper

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

Private Properties

Свойство Тип Описание
CoreDispatcher_AcceleratorKeyActivated void
CoreWindow_PointerPressed void
HardwareButtons_BackPressed 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.

HardwareButtons_BackPressed ( object sender, Windows e ) : void

Invoked when the hardware back button is pressed. For Windows Phone only.

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

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