Skip to main content
WinJS.UI.Pages Namespace

Applies to Windows and Windows Phone

Provides methods for defining and displaying pages ( PageControl objects) within an app.

The WinJS.UI.Pages namespace has these types of members:

Objects

ObjectDescription

PageControl object

A modular unit of HTML, CSS, and JavaScript defining a page within an app that can be navigated to or used as a custom WinJS control.

 

Interfaces

InterfaceDescription

IPageControlMembers interface

Provides members for a PageControl. You implement this interface when defining a new PageControl.

 

Functions

FunctionDescription

define function

Creates a new PageControl from the specified URI containing the specified members.

get function

Gets a pre-defined page control for the specified URI, or creates a new one.

render function

Creates a PageControl from the specified URI and inserts it inside the specified DOM element.

 

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