Silverlight 4 + RIA Services - Ready for Business: Consuming Data in the Silverlight Client
Posted by: Brad Abrams,
on 16 Mar 2010 |
View original | Bookmarked: 0 time(s)
To continue our series, lets see where the fun comes in my look at how easy that is to consume from the client. First just to help you understand what is happening behind the covers, lets look at a code-behind solution. In View\Home.xaml put a simple DataGrid on the form. <sdk:DataGrid Name="dataGrid1" Height="152" Width="692" />
Then add these lines of code to Home.xaml.cs
1: var context = new DishViewDomainContext();
2: this.dataGrid1.ItemsSource...