Silverlight Tutorials - For Beginners & Advanced Developers

Silverlight is a free plug-in, powered by the .NET framework for creating engaging, interactive user experiences for Web and mobile applications. Silverlight was discontinued and HTML5 is the way ahead.

So far, we have published 102 Silverlight 2, 3, 4 and 5 tutorials and articles, which have been read by over 5376593 (Five Million Three Hundred Seventy Six Thousand Five Hundred Ninety Three) developers and architects.

Silverlight 5: Some New Features For Developers

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 5/22/2012
78585 views

Abstract: Silverlight 5, the latest version of Microsoft's browser plug-in comes with significant improvements with respect to Controls, Text, Dialog, Performance and data-binding. In this article, we will take an overview of some of the new Silverlight 5 features.

Encoding Video using Expression Encoder 4.0 and using it in an ASP.NET Website

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 11/30/2011
108075 views

Abstract: In this article we will see how to encode video files and add Markers and Thumbnails using Microsoft Expression Encoder 4.0. After encoding the media, we will use it an ASP.NET web site.

Silverlight: Basic Integration with SharePoint 2010 WCF Data Services

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 10/10/2011
105168 views

Abstract: The advantage of WCF Data Services is that any client application can now make a call to the WCF services and interact with the SharePoint object model. It is not necessary for the end-user to directly log-in to the SharePoint Web Site application and work on it. WCF Data Services provided in SharePoint 2010 helps to implement integration based application with other client applications.

Silverlight 4: Consuming Workflow Service

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 10/4/2011
98590 views

Abstract: This article demonstrates how to expose your Workflow based business processes as a Service and use a Browser client like Silverlight 4 to subscribe to it

Silverlight 5.0 RC: Implicit Templates and Effective Data Representation

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 9/18/2011
96545 views

Abstract: Silverlight 5 RC Implicit Templates are DataTemplates and are associated with a specific DataType. They are a powerful addition to the Silverlight 5 templating abilities and in this article, we will explore the same

Silverlight 4: Applying Style to the Selected DataGrid Cell during Edit Operation

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 8/28/2011
102979 views

Abstract: The Silverlight DataGrid has lots of events for User Interaction. One of the event provided is PreparingCellForEdit, which is raised when a cell in the DataGrid column enters Editing mode. During this event, the DataGridCell is templated as the TextBox control and we can then manipulate data within the textbox. In this article, I have used the ‘PreparingCellForEdit’ event to apply a style on the DataGrid Cell

Silverlight 4.0: Applying Data Templates on ListBox at Runtime

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 7/21/2011
100878 views

Abstract: DataTemplates in Silverlight are typically used for visual representation of your data. They are particularly useful when you are binding an ItemsControl such as a ListBox to a collection. I was recently asked to make use of a DataTemplate on a ListBox at runtime, for performing Update operations. In this article, I have demonstrated how to declare DataTemplates in XAML and to read and apply them at runtime

Excel like Filtering in Silverlight DataGrid

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 7/19/2011
94615 views

Abstract: Microsoft Excel is a popular product and it’s very common for end-users to expect a similar experience in any grid like control they use. The same goes for the Silverlight DataGrid where users expect a similar experience when it comes to filtering records. In this article, to create an excel filtering like experience in a Silverlight DataGrid, I am using a ControlTemplate using which you can add any kind of a UI element like the ComboxBox in the header.

Silverlight 4.0: Applying TextChange behavior to the TextBox

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 7/17/2011
79511 views

Abstract: This article demonstrated how to define a custom behavior and extend the functionality of the Silverlight controls like the TextBox

Microsoft Silverlight 4 Tutorials You Must Read

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 7/13/2011
147333 views

Abstract: In this link list, I plan to share 70 Silverlight Tutorials written by authors of DotNetCurry and DevCurry that should be helpful for every Silverlight developer out there.

Silverlight 4.0: Duplex Communication over Http using PollingDuplexHttpBinding

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 6/25/2011
46045 views

Abstract: In a real world application, many-a-times it is required that the application performs a two-way communication i.e. the client application sends request to the service and then service should have capability to initiate action itself and send the data back to the client. In Silverlight, we can perform this kind of operation using Socket programming as well as using Duplex bindings. In Silverlight 4.0, we can do this using net.tcp binding. In this small article, I have used Polling Duplex communication

Silverlight 4.0 - Uploading Multiple Files to the Server

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 6/17/2011
70221 views Abstract: This article demonstrates how to upload multiple files to the server using Silverlight 4.0

Silverlight 5 Beta - Run Elevated Trust Applications in Browser

Authored by: Pravinkumar Dabade in Silverlight 2, 3, 4 and 5 on 5/14/2011
67932 views

Abstract: In this article, we will see how to run an Elevated Trust Application within the Browser using Silverlight 5 Beta. For this demonstration, we will first create a Silverlight application by using Visual Studio 2010 with Silverlight Version 5.

Silverlight 4: End-to-End Application using Prism 4, WCF 4 and DataGrid Custom Behavior

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 5/12/2011
59482 views

Abstract: With the support for Prism 4 and the growing popularity of Silverlight 4 for line-of-business application development, there is a lot of buzz amongst developers to use the new features these technologies has to offer. So for example, I have observed that the demand for providing a simple and more interactive UX for developing DML UI using DataGrid is increasing. In this article, we will cover just that. I have explained the mechanism for performing CRUD operations using the Silverlight 4 DataGrid and have used SL 4, Prism 4 and WCF 4.0, along with DataGrid Custom behavior.

Silverlight 4 and Prism: Communication between Two Views of Different Modules using IEventAggregator

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 5/4/2011
59388 views

Abstract: In this article, we will see how to use the Prism Event Aggregator mechanism in Silverlight applications to communicate between two views of different modules

Prism 4: Defining Custom Command Behavior for ListBox control in Silverlight 4.0

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 4/20/2011
52436 views

Abstract: In this article, I have explained how to define custom command behavior to the List Box control using Silverlight and Prism 4

Silverlight 5 Beta: What’s New?

Authored by: Pravinkumar Dabade in Silverlight 2, 3, 4 and 5 on 4/18/2011
42080 views

Abstract: Silverlight 5 Beta was announced recently by Microsoft. In this article, we will see some of the new features introduced in Silverlight 5 Beta.

Webcam Support in Silverlight 4 to capture Video

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 4/10/2011
80667 views

Abstract: Silverlight 4 support for audio capture devices and video capture devices (Webcam), has opened up a new range of possibilities like recording, snapshot etc. In this short article, we will see how simple it is to use a Webcam in Silverlight 4.

ListBox Paging in Silverlight 4 using DataPager control

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 3/27/2011
74793 views

Abstract: Prior to Silverlight 4, implementing paging in an application would require the developer to create controls, that would allow the user to move from one page to another. With the introduction of DataPager control in Silverlight 4, this task has become much simpler. Let us see how.

Motion Path in Silverlight 4 using PathListBox

Authored by: Pravinkumar Dabade in Silverlight 2, 3, 4 and 5 on 3/21/2011
64019 views

Abstract: In this article, we will see how to align the text to a given path using a ‘PathListBox’ control, in Silverlight 4.0. We will also see how to animate the text using Visual states in Silverlight.

Silverlight 4: Introduction to Behaviors

Authored by: Pravinkumar Dabade in Silverlight 2, 3, 4 and 5 on 3/17/2011
61757 views

Abstract: In this article, I will introduce you to Behaviors in Silverlight. We will also create a small demo of the ‘MouseDragElementBehavior’ behavior using Expression Blend 4. So, let’s get started.

Silverlight 4: SketchFlow for Prototyping UI using Expression Blend 4

Authored by: Pravinkumar Dabade in Silverlight 2, 3, 4 and 5 on 3/9/2011
59126 views

Abstract: In this article, we will see how Silverlight 4.0 and Expression Blend SketchFlow helps in designing deep dive prototypes for a product.

Silverlight 4 DataGrid: Load a CSV file

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 2/11/2011
44226 views

Abstract: In this article we will see how to load a CSV file (Comma Separated File) into a Silverlight 4 DataGrid control.

Silverlight and Prism: Communication between two Views of the same Module using IEventAggregator

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 2/1/2011
43119 views

Abstract: This article shows how to establish communication between two Views of the same Module (intra-module) or two Views of different Modules in Silverlight 4 and Prism 4

Localize a Silverlight 4 Application

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 1/28/2011
47089 views

Abstract: In this article, I will demonstrate how to localize a Silverlight 4 application. In simple words, localization is the customization of applications for a given culture or locale.

Loosely Coupled Silverlight 4 applications using Prism 4 and Commanding

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 1/20/2011
39019 views

Abstract: In this article, we will how to use DelegateCommand for implementing loosely coupled applications in Silverlight 4 using Prism 4.

Prism 4 - Load Modules in Silverlight 4 using Prism - Multiple ways

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 1/12/2011
45391 views

Abstract: Module is the most important part of a Prism 4 enabled Silverlight application. It can be registered, loaded in multiple ways, as shown in this article

Using Prism with Silverlight 4

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 12/23/2010
52063 views

Abstract: In the article, we will see how to use Prism in Silverlight by creating a sample application. Prism is a guidance designed and developed by Microsoft which helps in designing and building WPF and Silverlight client applications, which are easy and flexible to maintain.

Authentication in Silverlight using WCF and ASP.NET Membership Provider

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 12/21/2010
39606 views

Abstract: WCF has provided many benefits for developing secure, scalable distributed applications. One of the nice features of WCF service security is its integration with ASP.NET Membership provider. Using this provider, a caller can be authenticated by the WCF service against the user credentials stored in the SQL Server ASPNETDB database. In this article, we will see how a Silverlight client caller can be authenticated against the WCF service using this membership provider.

Silverlight FAQ – 13 Questions for Beginners

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 12/19/2010
41564 views

Abstract: This article contains a Silverlight FAQ (Frequently asked questions) to help those who are new to Silverlight or plan to get started with Silverlight.

Line of Business (LOB) Application using Silverlight 4, WCF 4, EF 4 and Commanding Architecture

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 12/15/2010
40305 views

Abstract: In this article, we will see how to create a sample LOB application using Silverlight 4.0. We will see how different application layers in Silverlight 4.0 can be isolated from each other. Since the UI is not associated with any compiled code, even if a layer is changed, it does not require any recompilation of the UI.

Accessing Local Database using Silverlight 4

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 11/11/2010
39013 views

Abstract: In this article, we will explore the mechanism of communicating with the local SQL Database using the out-of-browser features of Silverlight 4.0 with elevated trust permissions.

Silverlight and JSON - Consume JSON Services for Performing DML Operations in Silverlight 4

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 10/26/2010
32612 views

Abstract: When using Silverlight 4 for Line of Business (LOB) applications, it is important to make use of WCF services for fetching and updating data to and from SL to WCF. WCF actively makes use of Representatial State Transfer (REST) and JavaScript Object Notation (JSON) for data communication. In the following article, I will be explain how to consuming WCF-JSON in Silverlight 4.0 application.

Authorization and Authentication using WCF Security - Silverlight

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 10/18/2010
62932 views Abstract: In this article, we will explore WCF Security for authorization and authentication.

Silverlight 4.0 - Secure Communication to WCF service using Custom User Name and Password Validator

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 10/14/2010
49493 views

Abstract: Most of the times, when you develop an application that communicates to a service-oriented solution (like WCF services), it becomes necessary that the service must have some mechanism for authenticating the user, who is making a call to the service.

Silverlight 4.0 - Calling Secured WCF 4.0 Service hosted with SSL and Self-Signed Certificate

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 10/12/2010
53849 views

Abstract: In this article, I have explained the procedure of creating a Web Site with SSL enabled and configuring self-signed certificate. I then explain how to create WCF Services with Custom Binding and then consume the secured WCF service using Silverlight 4

Displaying Images in Silverlight 4 DataGrid using Converter

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 9/30/2010
32926 views

Abstract: Silverlight 4 being a technology for Line-Of-Business (LOB) application has provided lots of features to developers. One of the nice features is implementing value converters.

Reading Excel File in Silverlight 4.0 - COM Programming

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 9/20/2010
52645 views

Abstract: There have been several new features in Silverlight 4.0 which we have been discussing in the previous articles. One of the Silverlight 4.0 features you should know is COM programming capabilities.

Silverlight DataGrid - Performing DML Operations (Update, Delete and Insert)

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 9/14/2010
40249 views

Abstract: In this article, we will see how to perform Insert, Update and Delete operations in the Silverlight DataGrid.

Querying Netflix OData Service using Silverlight 4

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 8/15/2010
45379 views

Abstract: In this article, we will see how to consume the Netflix OData service and display data in a Silverlight DataGrid control.

Effective Data Representation in Silverlight 4.0 using TargetNullValue, StringFormat and FallbackValue

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 8/1/2010
28306 views

Abstract: A common issue that I hear from my clients regarding data representation in Silverlight ItemsControls is that while fetching data from service and displaying in a DataGrid, some data values (especially string) are sometimes Null and also some numeric values need to be represented in a currency format.

Data Validation in Silverlight 4.0

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 7/28/2010
43792 views

Abstract: Silverlight 4.0 has several new features and it has been listed down well over here. One of the most exciting features of Silverlight 4.0, is its capability for building Line-of-Business (LOB) applications.

Silverlight 4.0 and Network Authentication while performing Web Request

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 7/24/2010
37766 views

Abstract: In this article, I will demonstrate how to make a Web request to an external service using the Network Authentication feature . This mechanism helps making call to external services from the Silverlight 4.0 client by using the credentials, as demanded by the service.

Silverlight 4: Using Commanding Parameters for Performing Insert Operations

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 6/24/2010
29279 views

Abstract: In my previous article, Silverlight 4 – Using Commanding Feature to Fetch data from a WCF 4.0 service, we explored the new commanding support provided to Silverlight 4.0 applications and how commanding provides easy and flexible code-less development mechanism. In this article, we will explore how to use the Commanding Parameters to perform DML Operations (Insert).

Silverlight 4.0 - Using Commanding Feature to Fetch data from a WCF 4.0 service

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 6/20/2010
36178 views

Abstract: Command is a class that supports the ICommand interface and lets you data bind specific operations in your application. In Silverlight 4, there is a new pair of properties added to the ButtonBase and Hyperlink classes named Command and CommandParameter that lets you do so.

Right Click a TextBox and Display a ContextMenu using Silverlight 4

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 5/21/2010
76087 views

Abstract: In versions prior to Silverlight 4, when you right clicked an UI Element, the events were handled by the Silverlight plug-in internally to display the Silverlight configuration dialog

TreeView Drag Drop in Silverlight

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 5/19/2010
62469 views

Abstract: I have seen plenty of questions around drag-drop operations within a TreeView and I thought of dedicating a post to it. This article shows you how easy it is now to do a Drag Drop operation on a TreeView in Silverlight

A Simple approach to build a Silverlight 3.0/Silverlight 4.0 application that consumes a WCF Service

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 5/3/2010
29896 views

Abstract: Silverlight is now used for developing LOB applications where the requirement is to develop loosely coupled browser based applications using Silverlight. One of the approaches here is to remove the dependency between Model and View like MVVM does. This article does not implement MVVM, but instead shows how to build the model and view independent of each other.

Printing Support in Silverlight 4

Authored by: Suprotim Agarwal in Silverlight 2, 3, 4 and 5 on 4/19/2010
44776 views

Abstract: Silverlight 4 is released and it comes with a whole set of new features. One of the new features added in Silverlight 4 is the support for printing. This was a much needed feature especially when creating business/enterprise applications. In this article, we will see how to use the printing API in Silverlight 4.

Consuming Binary Encoded WCF 4.0 Service in Silverlight 3.0 Applications

Authored by: Mahesh Sabnis in Silverlight 2, 3, 4 and 5 on 3/22/2010
42732 views

Abstract: This article demonstrates how a binary encoded WCF service can be consumed in Silverlight 3.0 client for messaging optimization.