Visual Studio 2010!

Read now >

View Now
DevSource RSS FEEDS
XML Want an easy way to keep up with breaking tech news? And the Get DevSource headlines delivered to your desktop with RSS.
ADVERTISEMENT
ADVERTISEMENT

 

DevSource.com: Your Source for Visual Studio on Facebook
ADVERTISEMENT
Silverlight 4: DomainDataSource Tutorial
By DevSource

Rate This Article: Add This Article To:

Learn about DomainDataSource in Silverlight 4. This article at ASPFree.com highlights the nuances of binding to and utilizing the DomainDataSource binding with a datagrid or other component.

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.”




Discuss Silverlight 4: DomainDataSource Tutorial
 
>>> Be the FIRST to comment on this article!
 

 
 
>>> More ASP and .Net Coding Techniques Articles          >>> More By DevSource