Search Wiki:
Resource Page Description
SharePoint 2010 and Silverlight 4.0 code samples

The current release adds to the demonstrations from the TechNet 2010 North America presentation, Building Rich Internet Applications with Microsoft Silverlight and SharePoint 2010 (OSP301). Previous releases are from previous talks and webcasts; some but not all of the demos from TechEd are similar.

This new release includes full CRUD operations in the Contacts Grid web part and a new Search web part that demonstrates how to call the Search.asmx web service, as well as how to build an editor part that allows editing the Silverlight web part in place.

The code samples are as follows:

SharePoint and Silverlight from Scratch
This walkthrough was presented only in the webcast to show how to get stared developing in Silverlight for SharePoint 2010. The sample includes only the snippets (in Visual Studio snippet format); it will be necessary to watch the webcast to see how to use them.

Picture View Web Part
This is a Silverlight web part that shows a slide show of images stored in a SharePoint picture library. This demonstrates how to use the HTML bridge to reduce the number of round-trips to the server. In this case, the server side web part passes the URL’s of the pictures to Silverlight in a hidden form field, removing the need for the Silverlight application to query the server for the list of pictures.

Contacts Grid Web Part
This is a pair of Silverlight web parts that display and edit a grid of data from a SharePoint contacts list. A simple version shows how to call the new RESTful interface to SharePoint as provided by WCF Data Services (also know as ADO.NET Data Services.) A full blown version also allows paging, sorting and filtering, and only loads an n-row page at a time to allow viewing a large data set without downloading the whole thing to Silverlight.

SearchView
This web part shows a content roll-up or directory based on SharePoint (and optionally FAST) search. The query can be set up when editing the web part, or part of the query can be provided by the end user clicking on an alphabetic tab or entering a query into an autocomplete box. The autocomplete box shows search suggestions if available.

Map View
This adds a Bing Map field to SharePoint, using Silverlight to view the map. The actual field simply stores the (cached) geolocation to be mapped; editing a list item causes an address (in other fields of the item) to be geocoded on the server. The Silverlight display application is very simple, and shows how to render a Bing map in Silverlight. A similar web part is also provided.

Connected Silverlight Web Parts
This sample includes a pair of web parts – a source and target. When connected via the web browser, text entered into the source web part will appear on all targets as it is typed. This shows how to use SharePoint’s web part connection mechanism – which runs on the server side – as a broker to connect the Silverlight applications. The Silverlight applications communicate using the new Silverlight 3.0 Local Messaging API.

WebCam Web Part
This sample (missing the JPEG encoder, which is released seperately) is a web part that takes a picture and uploads it via the Client Object Model into a SharePoint picture library.
Last edited Jul 28 2010 at 7:15 PM  by BobGerman, version 5
Comments
Praveenbattula wrote  Apr 4 2010 at 6:44 PM  
Here is another introduction post on Silverlight Client Object Model in SharePoint 2010. This will also helps the devs to understand and create applications. Take a look at it.

http://praveenbattula.blogspot.com/2010/03/sharepoint-2010-silverlight-client.html

All SharePoint 2010 articles here: http://praveenbattula.blogspot.com/search/label/SharePoint%202010

Updating...
Page view tracker