WinJS.UI.Pages.get function

Applies to Windows and Windows Phone

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 supported client

Windows 8 [Windows Store apps only]

Minimum supported server

Windows Server 2012 [Windows Store apps only]

Minimum supported phone

Windows Phone 8.1

Namespace

WinJS.UI.Pages

Library

Base.js

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

 

 

Show:
© 2014 Microsoft. All rights reserved.