Silverlight 4 + RIA Services - Ready for Business: Consuming Data in the Silverlight Client
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...Did you know that DotNetSlackers also publishes .net articles written by top known .net Authors? We already have over 80 articles in several categories including Silverlight. Take a look: here.