C# Класс MediaAppSample.Core.Services.NavigationManagerBase

Base class for accessing navigation services on the platform currently executing.
Наследование: ServiceBase
Показать файл Открыть проект

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

Метод Описание
About ( ) : void
AccountForgot ( object parameter = null ) : void
AccountSignin ( object parameter = null ) : void
AccountSignup ( object parameter = null ) : void
CanGoBack ( ) : bool

Indicates whether or not a back navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go back as well.

CanGoForward ( ) : bool

Indicates whether or not a forward navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go forward as well.

ClearBackstack ( ) : void

Clears the navigation backstack of the window.

Details ( object parameter ) : void
Exit ( ) : void

Exits an application.

GoBack ( ) : bool

Navigates back one page. Will also check to see if the frame contains a WebView and if the WebView can go back, it will perform back on that WebView instead.

GoForward ( ) : bool

Navigates forward one page. Will also check to see if the frame contains a WebView and if the WebView can go forward, it will perform forward on that WebView instead.

HandleActivation ( IActivatedEventArgs e, Frame rootFrame ) : void

Handle activation of the event and any navigation necessary.

Home ( object parameter = null ) : void
Media ( object parameter ) : void
Movies ( ) : void
NavigateTo ( NavigationRequest request ) : void

Navigates to a page specified in the navigation request object.

NavigateTo ( object model ) : void
NavigateToWebBrowser ( string webAddress ) : void

Navigates to an external web browser.

NavigateToWebView ( string webAddress ) : void

Navigates to an internal app web browser.

PrivacyPolicy ( ) : void
Queue ( ) : void
RateApplicationAsync ( ) : Task
RemovePreviousPage ( ) : void

Removes the previous page in the navigation backstack.

Search ( object parameter = null ) : void
SendEmailAsync ( string subject, string body, string toRecipient ) : Task

Send an e-mail.

SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients = null ) : Task

Send an e-mail.

SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients, string bccRecipients ) : Task

Send an e-mail.

Settings ( object parameter = null ) : void
TV ( ) : void
TermsOfService ( ) : void
UpdateTitleBarBackButton ( ) : void

Updates the navigate back button in the app window's title bar.

Welcome ( object parameter = null ) : void

Защищенные методы

Метод Описание
CreateFrame ( ) : Frame
Initialize ( ) : void

Initialization logic which is called on launch of this application.

OnActivation ( LaunchActivatedEventArgs e ) : bool
OnActivation ( ProtocolActivatedEventArgs e ) : bool
OnActivation ( ToastNotificationActivatedEventArgs e ) : bool
OnActivation ( VoiceCommandActivatedEventArgs e ) : bool
SerializeParameter ( object obj ) : object

Serializes a parameter to string if not a primitive type so that app suspension can properly happen.

WebView ( object parameter ) : void

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

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

NavigateToWeb ( string webAddress, bool showExternally ) : void
RegisterCoreWindow ( ) : void

Registers the window with all window events.

ViewBase_BackRequested ( object sender, BackRequestedEventArgs e ) : void
ViewModelAllowGoBack ( Frame frame ) : bool

Checks a ViewModels to see if it will allow a nagivation back.

ViewModelAllowGoForward ( Frame frame ) : bool

Checks a ViewModels to see if it will allow a nagivation forward.

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

About() публичный Метод

public About ( ) : void
Результат void

AccountForgot() публичный абстрактный Метод

public abstract AccountForgot ( object parameter = null ) : void
parameter object
Результат void

AccountSignin() публичный абстрактный Метод

public abstract AccountSignin ( object parameter = null ) : void
parameter object
Результат void

AccountSignup() публичный абстрактный Метод

public abstract AccountSignup ( object parameter = null ) : void
parameter object
Результат void

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

Indicates whether or not a back navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go back as well.
public CanGoBack ( ) : bool
Результат bool

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

Indicates whether or not a forward navigation can occur. Will also check to see if the frame contains a WebView and if the WebView can go forward as well.
public CanGoForward ( ) : bool
Результат bool

ClearBackstack() публичный Метод

Clears the navigation backstack of the window.
public ClearBackstack ( ) : void
Результат void

CreateFrame() защищенный абстрактный Метод

protected abstract CreateFrame ( ) : Frame
Результат Windows.UI.Xaml.Controls.Frame

Details() публичный абстрактный Метод

public abstract Details ( object parameter ) : void
parameter object
Результат void

Exit() публичный Метод

Exits an application.
public Exit ( ) : void
Результат void

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

Navigates back one page. Will also check to see if the frame contains a WebView and if the WebView can go back, it will perform back on that WebView instead.
public GoBack ( ) : bool
Результат bool

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

Navigates forward one page. Will also check to see if the frame contains a WebView and if the WebView can go forward, it will perform forward on that WebView instead.
public GoForward ( ) : bool
Результат bool

HandleActivation() публичный Метод

Handle activation of the event and any navigation necessary.
public HandleActivation ( IActivatedEventArgs e, Frame rootFrame ) : void
e IActivatedEventArgs Activation args.
rootFrame Windows.UI.Xaml.Controls.Frame Root frame of the app.
Результат void

Home() публичный абстрактный Метод

public abstract Home ( object parameter = null ) : void
parameter object
Результат void

Initialize() защищенный Метод

Initialization logic which is called on launch of this application.
protected Initialize ( ) : void
Результат void

Media() публичный абстрактный Метод

public abstract Media ( object parameter ) : void
parameter object
Результат void

Movies() публичный абстрактный Метод

public abstract Movies ( ) : void
Результат void

NavigateTo() публичный Метод

Navigates to a page specified in the navigation request object.
public NavigateTo ( NavigationRequest request ) : void
request NavigationRequest Request object instance.
Результат void

NavigateTo() публичный абстрактный Метод

public abstract NavigateTo ( object model ) : void
model object
Результат void

NavigateToWebBrowser() публичный Метод

Navigates to an external web browser.
public NavigateToWebBrowser ( string webAddress ) : void
webAddress string URL to navigate to.
Результат void

NavigateToWebView() публичный Метод

Navigates to an internal app web browser.
public NavigateToWebView ( string webAddress ) : void
webAddress string URL to navigate to.
Результат void

OnActivation() защищенный абстрактный Метод

protected abstract OnActivation ( LaunchActivatedEventArgs e ) : bool
e Windows.ApplicationModel.Activation.LaunchActivatedEventArgs
Результат bool

OnActivation() защищенный абстрактный Метод

protected abstract OnActivation ( ProtocolActivatedEventArgs e ) : bool
e Windows.ApplicationModel.Activation.ProtocolActivatedEventArgs
Результат bool

OnActivation() защищенный абстрактный Метод

protected abstract OnActivation ( ToastNotificationActivatedEventArgs e ) : bool
e ToastNotificationActivatedEventArgs
Результат bool

OnActivation() защищенный абстрактный Метод

protected abstract OnActivation ( VoiceCommandActivatedEventArgs e ) : bool
e VoiceCommandActivatedEventArgs
Результат bool

PrivacyPolicy() публичный Метод

public PrivacyPolicy ( ) : void
Результат void

Queue() публичный абстрактный Метод

public abstract Queue ( ) : void
Результат void

RateApplicationAsync() публичный Метод

public RateApplicationAsync ( ) : Task
Результат Task

RemovePreviousPage() публичный Метод

Removes the previous page in the navigation backstack.
public RemovePreviousPage ( ) : void
Результат void

Search() публичный абстрактный Метод

public abstract Search ( object parameter = null ) : void
parameter object
Результат void

SendEmailAsync() публичный Метод

Send an e-mail.
public SendEmailAsync ( string subject, string body, string toRecipient ) : Task
subject string Subject of the message
body string Body of the message
toRecipient string
Результат Task

SendEmailAsync() публичный Метод

Send an e-mail.
public SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients = null ) : Task
subject string Subject of the message
body string Body of the message
toRecipients string To recipients
ccRecipients string CC recipients
Результат Task

SendEmailAsync() публичный Метод

Send an e-mail.
public SendEmailAsync ( string subject, string body, string toRecipients, string ccRecipients, string bccRecipients ) : Task
subject string Subject of the message
body string Body of the message
toRecipients string To recipients
ccRecipients string CC recipients
bccRecipients string BCC recipients
Результат Task

SerializeParameter() защищенный Метод

Serializes a parameter to string if not a primitive type so that app suspension can properly happen.
protected SerializeParameter ( object obj ) : object
obj object Parameter object to serialize.
Результат object

Settings() публичный абстрактный Метод

public abstract Settings ( object parameter = null ) : void
parameter object
Результат void

TV() публичный абстрактный Метод

public abstract TV ( ) : void
Результат void

TermsOfService() публичный Метод

public TermsOfService ( ) : void
Результат void

UpdateTitleBarBackButton() публичный Метод

Updates the navigate back button in the app window's title bar.
public UpdateTitleBarBackButton ( ) : void
Результат void

WebView() защищенный абстрактный Метод

protected abstract WebView ( object parameter ) : void
parameter object
Результат void

Welcome() публичный абстрактный Метод

public abstract Welcome ( object parameter = null ) : void
parameter object
Результат void