Presentation is loading. Please wait.

Presentation is loading. Please wait.

Build data-driven collection and list apps using XAML

Similar presentations


Presentation on theme: "Build data-driven collection and list apps using XAML"— Presentation transcript:

1 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 © 2010 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.

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 Bing related image browser
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 Using the async ‘await’ pattern to get XML-over-HTTP data
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 The collection controls
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 Turning data into visualization
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 Selection and multiple selection
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 feedback

26 9/12/2018 3:05 AM © 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. © 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.

27


Download ppt "Build data-driven collection and list apps using XAML"

Similar presentations


Ads by Google