200 likes | 409 Views
Integrating the Windows 8 Experience with Contracts. Jeremy Foster Developer Evangelist Microsoft. codefoster.com @ codefoster. Contracts enable integrating the Windows 8 experience into your app. Share. Settings. Search. FilePicker. PlayTo. …. Search.
E N D
Integrating the Windows 8 Experience with Contracts Jeremy Foster Developer Evangelist Microsoft codefoster.com @codefoster
Contracts enable integrating the Windows 8 experienceinto your app
Share Settings Search FilePicker PlayTo …
Modern computer users expect to be just a few keystrokes from the information they’re thinking of.
demo Search
Sharing From Source to Target Source App Share Broker Share Target App Registers with the DataTransferManager User selects “Share”, active app is sent event Receives event and fills DataPackage Filters list of Target Apps and Quicklinks User selects Target App or Quicklink Completes Asynccalls and returns Activate Target as kind shareTarget Activated for sharing Processes DataPackagecontents DataPackage lives in source application Reports Complete
Data Package Plain text Formatted text URI HTML Images Files Custom data formats
demo Share
Settings contract provides quick, consistent, in-context access to settings in your app
demo Settings
demo FilePicker
Share Settings Search FilePicker PlayTo …
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.