Friday, September 17, 2010

Building Windows Phone 7 Application .

In this blog Post I am going to build small Windows Phone Twitter Search Application . When we finish building then app this is how it looks

image 

Here is the steps we are going to follow .

1) Create VS.NET 2010  Windows Phone Application .

2) Build XAML UI.

3) We are going to parse that result using  LINQ TO XML.

4) Write Button click Event handler which will execute the  Twitter Search API and  get the  ATOM format Result.

5) Store the result in our Model  (Class which holds the  following properties Date published, Title, Image Uri).

6) Bind to the  View.

First  lets  create  a windows phone 7  Application project and  name it  TWAPP.

image

The following  XAML code builds  Textbox and Search button  where  user enter  search string and click Search button.

image

Next  we are going  construct the XAML which shows the  user Search result .

image

Here is our  MODEL

image

 

image

In Silverlight all calls to out side world is ASYNC.  Now we finished building the app and ready to compile and run .

image 

Now  enter the  some search string an click search button.

image

 

Nandri(Thanks)

Sreenivasaragavan.

No comments: