1 / 27

Build data-driven collection and list apps using XAML

APP-912T. Build data-driven collection and list apps using XAML. Laurence Moroney Senior Program Manager Microsoft Corporation. Great apps are connected and alive with content and activity. Related sessions. [APP-737T] Metro Style Apps in XAML: What you need to know

jens
Download Presentation

Build data-driven collection and list apps using XAML

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. APP-912T Build data-driven collection and list apps using XAML Laurence Moroney Senior Program Manager Microsoft Corporation

  2. Great apps are connected and alive with content and activity.

  3. Related sessions • [APP-737T] Metro Style Apps in XAML: What you need to know • [APP-503T] Make great touch apps using XAML • [APP-517T] Build polished collection and list apps using XAML

  4. Agenda • What’s new and different for XAML developers in Windows 8 • Connecting to services to get data • Asynchronous patterns • Local data • How to format your data for Windows 8 controls You’ll leave with examples of how to • Connect to web and local data • Use data in Windows 8 Metro style apps

  5. Demo Bing related image browser

  6. Acquiring data

  7. Acquiring data– What’s new and different? • Relational database access through a service tier • Local app storage • App has its own storage directory • Can access local file system

  8. Acquiring data– What’s new and different? • Use • XML-over-HTTP • JSON-over-HTTP • ASMX Web Services • Sockets • oData

  9. Acquiring data– What’s new and different? • Asynchronous retrieval of web data using the new ‘await’ patterns • Doesn’t block the UI thread! • Doesn’t require Dispatcher.BeginInvoke(() => DoSomething);

  10. demo Using the async ‘await’ pattern to get XML-over-HTTP data

  11. Using data

  12. Using data • So you’ve downloaded data asynchronously, now what? • Your familiar LINQ skills still apply • Binding to controls • ListBox • GridView • Grouping in GridView controls • Using IGroupInfo

  13. demo The collection controls

  14. Data binding • Data binding is the process that establishes a connection between the app UI and business logic • Can be declarative or defined in code • Binding actions enable customization of the binding logic • Value convertors • Binding modes • One-Way, Two-Way, One-Time

  15. demo Data binding

  16. Templates • Enables re-usable declarative XAML to define data binding behavior and presentation • Can define the template for the panel in which the contents will appear • Can define the template for the items themselves

  17. demo Templates

  18. demo Binding to a ListView Turning data into visualization

  19. Interacting with your data

  20. Interacting with data controls- selection • Single and multiple selection • Master/detail view • Shopping carts etc

  21. demo Selection and multiple selection

  22. Recap • What’s new and different with data apps in Windows 8 • Understand asynchronous connection • Think in terms of cloud data • Your XAML and .NET skills apply • LINQ and understanding collections and observable collections • XAML for controls and templates • Data binding and convertors • Using the new collection controls

  23. Related sessions • [APP-737T] Metro style apps in XAML: what you need to know • [APP-503T] Make great touch apps using XAML • [APP-517T] Build polished collection and list apps using XAML

  24. Further reading and documentation • Windows 8 SDK – Source of all the samples here! • Build Hands-on-Labs

  25. thank you Feedback and questions http://forums.dev.windows.com Session feedbackhttp://bldw.in/SessionFeedback

  26. © 2011 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.

More Related