2010-08-11
| Rate This Article: | Add This Article To: |
To read this code tutorial in its entirety, please visit ASPFree.com: Silverlight 4.0: DomainDataSource
To make this article simple, I managed to create a simple Silverlight 4.0 application which consumes a WCF RIA Service created using the WCF RIA Service Library. If you are not familiar with developing applications using the WCF RIA Service Library and Silverlight 4.0, check out this beginner’s article.
The entire source code for this article is available in the form of a free downloadable zip file. The solution was developed using Microsoft Visual Studio 2010 Ultimate Edition with Microsoft Silverlight 4.0 on Windows 7 Ultimate edition. I didn’t really test it in any other environment. I request that you post in the discussion area if you have any problems with execution.
Introducing DomainDataSource in Silverlight 4.0 In my previous articles, I explained how to deal with WCF RIA Service from Silverlight 4.0 in various ways. In this article, I would like to introduce the “DomainDataSource” object.
“DomainDataSource” is mainly used to simplify communication between a WCF RIA Service and a Silverlight 4.0 application (without writing too much code-behind). We can leverage “DomainDataSource” to call various operations against the WCF RIA Service using declarative syntax (XAML).
Let us start with an example. The following is the code which lays out a Silverlight DataGrid. We use this DataGrid to show information pulled from the WCF RIA Service using “DomainDataSource.”
|
![]() |
|


