25.12.2015 Views

Professional

1l6xhbR

1l6xhbR

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Implementing a scalable user interface . . . . . . . . . . . . . . . . . . . . . . .607<br />

Applying styles to a UI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .638<br />

Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .649<br />

Quick reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .649<br />

Chapter 26 Displaying and searching for data in a Universal<br />

Windows Platform app 651<br />

Implementing the Model-View-ViewModel pattern . . . . . . . . . . . . . . . . .651<br />

Displaying data by using data binding . . . . . . . . . . . . . . . . . . . . . . . .652<br />

Modifying data by using data binding . . . . . . . . . . . . . . . . . . . . . . . .659<br />

Using data binding with a ComboBox control . . . . . . . . . . . . . . . . .663<br />

Creating a ViewModel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .665<br />

Adding commands to a ViewModel . . . . . . . . . . . . . . . . . . . . . . . . . .669<br />

Searching for data using Cortana . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .680<br />

Providing a vocal response to voice commands . . . . . . . . . . . . . . .692<br />

Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .695<br />

Quick reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .696<br />

Chapter 27 Accessing a remote database from a Universal<br />

Windows Platform app 697<br />

Retrieving data from a database . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .698<br />

Creating an entity model . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .703<br />

Creating and using a REST web service . . . . . . . . . . . . . . . . . . . . . . .712<br />

Inserting, updating, and deleting data through a REST web service . . . .728<br />

Reporting errors and updating the UI . . . . . . . . . . . . . . . . . . . . . . . .738<br />

Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .746<br />

Quick reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .747<br />

Index 749<br />

Contents xvii

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

Saved successfully!

Ooh no, something went wrong!