17. App Contracts

Next up: app contracts.An app contract is an abstraction that allows apps to interact without knowing about one another.

There’s a lot about Windows 8 that’s pretty cool, but I think contracts might just be the coolest. Contracts power the charms that make Windows 8 apps consistent and discoverable (and allow them to function effectively without chrome). They also provide the infrastructure that allows Win8 apps to collaborate without prior knowledge.

Windows 8 defines seven contracts, although as we’ll see in the next chapter, only six are really available to your app. In this chapter, we’ll be exploring at the two most important in detail, because they’ll give you the basic techniques you need to use the others.

We’ll start ...

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