23.01.2018 Views

MICROSOFT_PRESS_EBOOK_PROGRAMMING_WINDOWS_8_APPS_WITH_HTML_CSS_AND_JAVASCRIPT_PDF

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

App Bar Events and Methods ............................................................................................................................................ 282<br />

Showing, Hiding, Enabling, and Updating Commands ............................................................................................ 284<br />

App Bar Styling ........................................................................................................................................................................ 287<br />

Custom Icons ........................................................................................................................................................................... 288<br />

Command Menus ................................................................................................................................................................... 290<br />

Custom App Bars and Navigation Bars ........................................................................................................................... 291<br />

Flyouts and Menus ...................................................................................................................................................................... 293<br />

WinJS.UI.Flyout Properties, Methods, and Events ....................................................................................................... 294<br />

Flyout Examples ...................................................................................................................................................................... 295<br />

Menus and Menu Commands ............................................................................................................................................ 299<br />

Context Menus ........................................................................................................................................................................ 301<br />

Message Dialogs .......................................................................................................................................................................... 303<br />

Improving Error Handling in Here My Am! ........................................................................................................................ 305<br />

What We’ve Just Learned ......................................................................................................................................................... 309<br />

Chapter 8: State, Settings, Files, and Documents ................................................................ 311<br />

The Story of State ........................................................................................................................................................................ 312<br />

Settings and State ................................................................................................................................................................... 314<br />

App Data Locations ................................................................................................................................................................ 315<br />

AppData APIs (WinRT and WinJS) .................................................................................................................................... 317<br />

Settings Containers ................................................................................................................................................................ 318<br />

Versioning App State ............................................................................................................................................................ 320<br />

Storage Folders and Storage Files .................................................................................................................................... 321<br />

The FileIO, PathIO, and WinJS helper classes (plus FileReader) ............................................................................. 325<br />

Encryption and Compression ............................................................................................................................................. 326<br />

Using App Data APIs for State Management ................................................................................................................ 327<br />

Session State ............................................................................................................................................................................ 327<br />

Local and Temporary State ................................................................................................................................................. 328<br />

IndexedDB and Other Database Options ...................................................................................................................... 329<br />

Roaming State ......................................................................................................................................................................... 331<br />

Settings Pane and UI .................................................................................................................................................................. 333<br />

8

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!