Summary

This chapter focused on two topics: how to reuse the same fragment of HTML across multiple pages and how to build apps with multiple pages. In the first part of this chapter, I discussed the HtmlControl, which enables you to include one HTML page in another HTML page.

Next, I discussed how you can create Page controls. Page controls provide you with an easy way of creating new WinJS controls out of an HTML page, JavaScript file, and style sheet.

Finally, I explained how you can create a single-page app that contains multiple pages. You learned how to use the PageControlNavigator control—in conjunction with the Navigation API—to load Page controls dynamically and simulate the experience of navigating to separate pages.

Get Windows® 8.1 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.