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.