Contents

About the Author

About the Technical Reviewer

Acknowledgments

Introduction

images Chapter 1: Setting Up Windows 8 Application Project

The Development Environment

The Windows 8 Operating System

The Visual Studio Development Platform

Data Storage

Developer License

The Windows Store Project Templates

Creating a Windows Store XAML Project – FinanceHub

Exploring FinanceHub Project

The Project Structure

The Package Application Manifest File

Setting MVVM Architecture in FinanceHub Project

Summary

images Chapter 2: Implementing the View

Customizing Deployment Package and Runtime Configuration Properties

Background Color of the Tile

Application Logo Files and Splash Screen

Enabling Customization of Application Styles and Themes

Adding New Resource Dictionary File

Enabling Additional Resources.xaml Resource Dictionary at Application Level

Customizing Application Theme

Developing User Interface

The Main Startup Page – MainPage.xaml

Adding Bottom Application Bar – MainPage.xaml

Setting Up Remaining Custom Resources and Styles in Resources.xaml

Adding Stocks Page – StocksPage.xaml

Adding Stock Details Page – StockInfoView.xaml and StockDetails.xaml

Adding Add Stock Flyout Control

Adding Remove Stock Flyout Control

Integrating Flyout Controls with Bottom Application Bar

Summary

images Chapter 3: Implementing the Model

Define Serializable and Deserializable Stocks Data Model

Define enum to support Add and Remove Stocks Actions

Define a Class for Event Arguments of Add and Remove Stocks Actions

Create a Helper Class to Store and Retrieve Stocks Watchlist in the Local Data Storage

Asynchronous Operations and Local Storage Capabilities for Windows 8 Applications

Implementing Local Storage Helper Class

Add SimulatedRandomStocksDetail.csv File

Summary

images Chapter 4: Implementing the ViewModel

Building MVVM Framework for FinanceHub Application

IoC Container Dependency

The EventAggregator Class

The Navigation Service

Implementing the ViewModelLocator Class

Implementing the DelegateCommand Class

Implementing ViewModel Classes

The StocksPageViewModel ViewModel

The AddRemoveStockViewModel ViewModel

Summary

images Chapter 5: HTML5, JavaScript, and Windows 8 Applications

HTML5 and JavaScript

Windows 8 Applications Using HTML5 and JavaScript

Windows APIs for Windows 8 Store Applications

Windows JavaScript Library

Best Practices in JavaScript Development

Global Namespace Pollution and Prevention

Use of Self

Using the Strict Mode

Module Pattern and Self-Executing Functions

Using Constructor Initialization

The Knockout JavaScript Framework

Summary

images Chapter 6: View, Model, and ViewModel Structures in HTML5 and JavaScript

Setting up FinanceHub JavaScript Windows 8 Application Project

Exploring and Setting up FinanceHub Project

Adding Application Logo Files and Splash Screen

Implementing the View

Adding StockPages.html Page Control

Adding StockDetails.html Page Control

Enhancing default.html Page

Implementing Converters

Create FinanceHub Application Branding

Implementing the Model

Define Stock Class

Add SimulatedRandomStocksDetail.csv File

Implementing the ViewModel

Define StocksPageViewModel Class and Bind to the Views

Implementing Local Storage Helper Class

Define AddandRemoveStockViewModel Class and Bind to the Views

Implementing the State Persistence

The SaveStocks Function

The LoadStocks Function

Check State Persistence

Summary

Index

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.215.117