databound app + online xml data source (windows phone 8)

Post on 10-May-2015

839 Views

Category:

Technology

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

Databound App + Online XML Data Source (Windows Phone 8)

Jaliya Udagedara

Target Audience

• Familiarity in any programming language (C# is preferred)

• IDE : Visual Studio

• Experience in Basic Windows Phone Application Development

• XAML

What are we going to discuss today?• Windows Phone Databound App Template

• MVVM For Windows Phone

• Basics of Data Binding

• Quick Look : LINQ Queries

• Demo

Windows Phone Databound App Template• A Template designed using a MVVM pattern

MVVM For Windows Phone

• MVVM is a way to separate data from the user

interface.

• Developers code models.

• Designers create user interfaces.

• MVVM is not just for Windows Phone

Development.

MVVM For Windows Phone

ViewModel

Model Model Model

View View

Data BindingCommands

Messages

Data Binding

• View is bounded to ViewModel

• ViewModel must implement

INotifyPropertyChanged Interface

• Notify clients, typically binding clients, that a

property value has changed.

Quick Look : LINQ Queries

• What are queries?

• SQL for relational databases

• XQuery for XML etc.

• What is LINQ?

• Operations in a LINQ query

• Obtain the data source

• Create the query

• Execute the query

Demo

WP8 Databound App Consuming an

Online XML Data Source

Thank You!http://www.jaliyaudagedara.blogspot.com/

top related