Chapter 10. Page Fragments and Navigation

The goal of this chapter is to explain three controls: the HtmlControl, the Page Control, and the PageControlNavigator control. All three controls enable you to display the contents of one HTML page in another HTML page using Ajax.

The HtmlControl enables you to add a chunk of HTML to a page. You can use this control to reuse the same HTML markup in multiple places in your app.

Creating custom Page Controls enables you to easily create new WinJS controls out of an HTML page, JavaScript file, and style sheet. Create a Page Control when you want to encapsulate both markup and behavior in a new control. ...

Get Windows® 8 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.