Freigeben über


WinJS.UI.Pages Namespace

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

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

  • Objects
  • Interfaces
  • Functions

Objects

Object Description

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

Interface Description

IPageControlMembers interface

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

 

Functions

Function Description

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

WinJS 1.0

Namespace

WinJS.UI.Pages

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