C# Class MediaAppSample.Core.ViewModels.WebBrowserViewModel

Inheritance: ViewModelBase
Afficher le fichier Open project: Microsoft/TVHelpers

Méthodes publiques

Méthode Description
BrowserGoBack ( ) : void

Navigates the web browser backwards.

BrowserGoForward ( ) : void

Navigates the web browser forward.

BrowserGoHome ( ) : void

Navigates the web browser to the home page.

BrowserRefresh ( ) : void

Refreshes the web browser.

InitialNavigation ( ) : void

Initial page that should be navigated on launch of the application.

NavigateTo ( string url ) : void

Navigate to a specific web page.

Navigated ( Uri uri, string title = null ) : void

Notify this VM that a page has been navigated to.

Navigating ( Uri uri ) : bool

Notify the VM that the browser is in the process of navigating to a particular page and offer the ability for it to cancel the navigation.

NavigationFailed ( Uri uri, Exception exception, string title = null ) : void

Notify this VM that a navigation failure has occurred.

SetBrowserFunctions ( Func canGoBack, Func canGoForward ) : void

Configure the VM to perform execute custom functions when the browser can go back/forward.

WebBrowserViewModel ( bool showNavigation = true ) : MediaAppSample.Core.Commands

Méthodes protégées

Méthode Description
ClearStatus ( ) : void

Clears any error status messagse.

OnBackNavigationRequested ( ) : bool
OnForwardNavigationRequested ( ) : bool

Method Details

BrowserGoBack() public méthode

Navigates the web browser backwards.
public BrowserGoBack ( ) : void
Résultat void

BrowserGoForward() public méthode

Navigates the web browser forward.
public BrowserGoForward ( ) : void
Résultat void

BrowserGoHome() public méthode

Navigates the web browser to the home page.
public BrowserGoHome ( ) : void
Résultat void

BrowserRefresh() public méthode

Refreshes the web browser.
public BrowserRefresh ( ) : void
Résultat void

ClearStatus() protected méthode

Clears any error status messagse.
protected ClearStatus ( ) : void
Résultat void

InitialNavigation() public méthode

Initial page that should be navigated on launch of the application.
public InitialNavigation ( ) : void
Résultat void

NavigateTo() public méthode

Navigate to a specific web page.
public NavigateTo ( string url ) : void
url string URL to navigate to.
Résultat void

Navigated() public méthode

Notify this VM that a page has been navigated to.
public Navigated ( Uri uri, string title = null ) : void
uri System.Uri
title string
Résultat void

Navigating() public méthode

Notify the VM that the browser is in the process of navigating to a particular page and offer the ability for it to cancel the navigation.
public Navigating ( Uri uri ) : bool
uri System.Uri
Résultat bool

NavigationFailed() public méthode

Notify this VM that a navigation failure has occurred.
public NavigationFailed ( Uri uri, Exception exception, string title = null ) : void
uri System.Uri
exception System.Exception
title string
Résultat void

OnBackNavigationRequested() protected méthode

protected OnBackNavigationRequested ( ) : bool
Résultat bool

OnForwardNavigationRequested() protected méthode

protected OnForwardNavigationRequested ( ) : bool
Résultat bool

SetBrowserFunctions() public méthode

Configure the VM to perform execute custom functions when the browser can go back/forward.
public SetBrowserFunctions ( Func canGoBack, Func canGoForward ) : void
canGoBack Func
canGoForward Func
Résultat void

WebBrowserViewModel() public méthode

public WebBrowserViewModel ( bool showNavigation = true ) : MediaAppSample.Core.Commands
showNavigation bool
Résultat MediaAppSample.Core.Commands