.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Articles >> Silverlight >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Designing RIA Applications using Expression Blend - Part 3

Posted By:Mahadesh Mahalingappa       Posted Date: August 15, 2011    Points: 200    Category: Silverlight    URL: http://www.dotnetspark.com  

In this article let us check out how to bind the listbox to an xmldatasource in Silverlight using Expression Blend.
 

Designing RIA Applications using Expression Blend - 3 :

In this series of Designing RIA Applications using Expression Blend - Part 1 would be demonstrating the various features Blend offers to the Developers to develop RIA applications .

In the first few Designing RIA Applications using Expression Blend - Part 2 would give a brief of how we are going to use those features .

In this article let us check out how to bind the listbox to an xmldatasource .

Lets create our xml file first . I just took the one in the following path

http://msdn.microsoft.com/en-us/library/ms762271(v=vs.85).aspx

and named it as Books.xml .

Looks like below :



Lets create a new Blend Silverlight Application .









Simply drag the Books collection on to the ListBox .






We are done . The xaml should now look as follows :





Well I have used ListBox a lot in this series , I need a change let me try a datagrid . Simply Delete the Listbox and drag a DataGrid from the assets toolbar and drop it into the xaml area .






Again drag the Bookscollection into the datagrid as shown below :




We should be ok now .



Cool. We did not have to do anything new there really .

See the xaml and you would know the amount of work you just did .


  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  



Lets give it a run and see how it works :



In my next article we will see animations in Blend . Till Then . Happy Coding.

 Subscribe to Articles

     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend