This document discusses various UI elements in a Windows app including styles, pages, scripts, config files, app bars, message dialogs, context menus, flyouts, date pickers, list views, templates, and animations. It provides code examples for implementing these elements and adjusting styles based on screen size. Functions are defined for common animations like fade in, pointer down, and pointer up.
Basic slide to make sure everyone watching knows we'll be focusing on HTML/JavaScript Metro apps.
Uses standards-based CSS
In addition to the main "canvas", several additional UI surfaces are available. Also support for:Flyout - A flyout is a lightweight popup that is used to temporarily show UI.ToastsErrorshttp://code.msdn.microsoft.com/windowsapps/Message-dialog-sample-3106f44a
CSS3 Flexible Box layout can adapt to multiple screen sizes and enable digital newspaper, magazine, and other digital print media consumptive scenarios.CSS3 Grid alignment divides available space for lay out into columns and rows using a set of predictable sizing behaviors. CSS3 Multi-column layout supports content flow from one column to another for an arbitrary number of columns.http://msdn.microsoft.com/en-us/library/windows/apps/hh465327(v=VS.85).aspxhttp://msdn.microsoft.com/en-us/library/windows/apps/hh465451(v=VS.85).aspx#layout_controls
When a running app is activated, the system raises the WinJS.Application.activated event only.When a page is refreshed, only the DOMContentLoaded and window.load events are raised.Checkpoint example:function checkpointHandler(eventArgs) {varstateObject = new Object(); // TODO: Populate the state object with app data // Save the state object to the session objectapp.sessionState.stateObject = stateObject;}Windows.UI.WebUI.WebUIApplication.resuming