C# Класс MediaAppSample.Core.ViewModels.WebBrowserViewModel

Наследование: ViewModelBase
Показать файл Открыть проект

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

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

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

Метод Описание
ClearStatus ( ) : void

Clears any error status messagse.

OnBackNavigationRequested ( ) : bool
OnForwardNavigationRequested ( ) : bool

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

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

Navigates the web browser backwards.
public BrowserGoBack ( ) : void
Результат void

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

Navigates the web browser forward.
public BrowserGoForward ( ) : void
Результат void

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

Navigates the web browser to the home page.
public BrowserGoHome ( ) : void
Результат void

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

Refreshes the web browser.
public BrowserRefresh ( ) : void
Результат void

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

Clears any error status messagse.
protected ClearStatus ( ) : void
Результат void

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

Initial page that should be navigated on launch of the application.
public InitialNavigation ( ) : void
Результат void

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

Navigate to a specific web page.
public NavigateTo ( string url ) : void
url string URL to navigate to.
Результат void

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

Notify this VM that a page has been navigated to.
public Navigated ( Uri uri, string title = null ) : void
uri System.Uri
title string
Результат void

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

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

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

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

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

protected OnBackNavigationRequested ( ) : bool
Результат bool

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

protected OnForwardNavigationRequested ( ) : bool
Результат bool

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

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

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

public WebBrowserViewModel ( bool showNavigation = true ) : MediaAppSample.Core.Commands
showNavigation bool
Результат MediaAppSample.Core.Commands