NavigationManager Class

Definition

Provides an abstraction for querying and managing URI navigation.

public ref class NavigationManager abstract
public abstract class NavigationManager
type NavigationManager = class
Public MustInherit Class NavigationManager
Inheritance
NavigationManager

Constructors

NavigationManager()

Properties

BaseUri

Gets or sets the current base URI. The BaseUri is always represented as an absolute URI in string form with trailing slash. Typically this corresponds to the 'href' attribute on the document's <base> element.

Uri

Gets or sets the current URI. The Uri is always represented as an absolute URI in string form.

Methods

EnsureInitialized()

Allows derived classes to lazily self-initialize. Implementations that support lazy-initialization should override this method and call Initialize(String, String).

Initialize(String, String)

Called to initialize BaseURI and current URI before these values are used for the first time. Override EnsureInitialized() and call this method to dynamically calculate these values.

NavigateTo(String, Boolean)

Navigates to the specified URI.

NavigateToCore(String, Boolean)

Navigates to the specified URI.

NotifyLocationChanged(Boolean)

Triggers the LocationChanged event with the current URI value.

ToAbsoluteUri(String)

Converts a relative URI into an absolute one (by resolving it relative to the current absolute URI).

ToBaseRelativePath(String)

Given a base URI (e.g., one previously returned by BaseUri), converts an absolute URI into one relative to the base URI prefix.

Events

LocationChanged

An event that fires when the navigation location has changed.

Applies to