Creates a PageControl from the specified URI and inserts it inside the specified element.
Syntax
WinJS.UI.Pages.render(uri, element, options, parentedPromise).done( /* Your success and error handlers */ );
Parameters
- uri
-
Type: String
The URI for the content that defines the page.
- element
-
Type: DOMElement
The DOM element to which the PageControl is appended.
- options [optional]
-
Type: Object
An object that contains one or more property/value pairs to apply to the new PageControl. How these property/value pairs are used (or not used) depends on the implementation of that particular PageControl.
- parentedPromise [optional]
-
Type: Promise
A Promise that is fulfilled when the new PageControl is done rendering and its contents becomes the child of element.
Return value
Type: Promise
A promise that is fulfilled when rendering is complete, if asynchronous processing is necessary. If not, returns nothing.
Requirements
|
Namespace |
WinJS.UI.Pages |
|---|---|
|
Library |
|
See also
- Navigation design for Windows Store apps
- Quickstart: Adding Page controls
- Adding a Page control item template
- Quickstart: Using single-page navigation
- HTML PageControl sample
Build date: 12/5/2012