WinJS.UI.Pages.get function

Gets a pre-defined page control for the specified Uniform Resource Identifier (URI), or creates a new one.

Syntax

var functionRef = WinJS.UI.Pages.get(uri);

Parameters

  • uri
    Type: String

    The URI for the content that defines the page.

Return value

Type: Function

A constructor function that creates the page.

Requirements

Minimum WinJS version

WinJS 1.0

Namespace

WinJS.UI.Pages

See also

For developers

WinJS.UI.Pages Namespace

Your first app - Part 3: PageControl objects and navigation

Navigating between pages

Quickstart: Using single-page navigation

Quickstart: Adding Page controls

Adding a Page control item template

HTML Page controls sample

Navigation and navigation history sample

For designers

Navigation patterns