C# Class MediaAppSample.Core.ViewModels.WebBrowserViewModel

Inheritance: ViewModelBase
Mostrar archivo Open project: Microsoft/TVHelpers

Public Methods

Method 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

Protected Methods

Method Description
ClearStatus ( ) : void

Clears any error status messagse.

OnBackNavigationRequested ( ) : bool
OnForwardNavigationRequested ( ) : bool

Method Details

BrowserGoBack() public method

Navigates the web browser backwards.
public BrowserGoBack ( ) : void
return void

BrowserGoForward() public method

Navigates the web browser forward.
public BrowserGoForward ( ) : void
return void

BrowserGoHome() public method

Navigates the web browser to the home page.
public BrowserGoHome ( ) : void
return void

BrowserRefresh() public method

Refreshes the web browser.
public BrowserRefresh ( ) : void
return void

ClearStatus() protected method

Clears any error status messagse.
protected ClearStatus ( ) : void
return void

InitialNavigation() public method

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

NavigateTo() public method

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

Navigated() public method

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

Navigating() public method

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
return bool

NavigationFailed() public method

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
return void

OnBackNavigationRequested() protected method

protected OnBackNavigationRequested ( ) : bool
return bool

OnForwardNavigationRequested() protected method

protected OnForwardNavigationRequested ( ) : bool
return bool

SetBrowserFunctions() public method

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
return void

WebBrowserViewModel() public method

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