Kentico CMS supports Silverlight 2.0

Since version 4.0 BETA Kentico comes with native support for Silverlight 2.0. If you want to know how you can integrate Silverlight applications into your Kentico CMS based web sites read further.

What is Silverlight?
Microsoft Silverlight is a new cross-browser, cross-platform technology for building and delivering the next generation of media experiences and Rich Interactive Applications (RIA) for the web.

Running Silverlight applications
Silverlight applications run in the internet browser. All you need is a small plug-in installed in your browser. The plug-in is free. How it works in general:

  1. Developer creates web site with built-in Silverlight application.
  2. Site visitor navigates to that site using the internet browser.
  3. If user do not already have the required plug-in installed in the browser, he is automatically prompted to install it.
  4. Silverlight application runs.

Creating Silverlight applications
Silverlight is .NET Framework based technology so if you are familiar with development using Visual Studio and one of the .NET Framework languages like C#, it will be much easier for you to learn Silverlight. For developing Silverlight 2.0 applications you will need at least Microsoft Visual Studio 2008 SP1 with Silverlight Tools. There is one more powerfull tool for designers - Expression Blend, which enables them to create their application design in a really comfortable way. I also strongly recommend you to install Silverlight Toolkit which brings you many new controls into your Silverlight applications.

Visit the Silverlight community site where you can download all the required components. Moreover, there you can find valuable tutorials which can help you to get started developing Silverlight applications.

Silverlight 2.0 in Kentico CMS
From the Kentico CMS 4.0 Beta you can enjoy native support for Silverlight 2.0 applications which could be easily integrated into your web sites. I'm sure most of you have already been exploring Silverlight possibilities using its beta versions (Beta 1 and Beta 2). Of course, we have been doing the same because it was definitely the most expected technology for creating rich internet applications that time. Now the final version of Silverlight is already published, so let's have a look how Kentico CMS integrates Silverlight support.

What do I need to run my Silverlight application in Kentico CMS?
The answer is quite simple - you need Kentico CMS 4.0 Beta or higher. Please follow these steps to insert Silverlight application into your web site:
  1. Create a new site using one of the built-in web templates or use your existing one.
  2. Go to the CMSDesk -> Content and add or edit some document. 
  3. Ensure the document is using the page template with at least one web part zone.
  4. Go to the Design mode of that document (click the Design tab) and click "Add web part" image button on the web part zone.
  5. Select Silverlight application container web part to be inserted into your page template.
    Inserting Silverlight application into Kentico CMS
  6. Click "Configure" image button to specify path to your Silverlight application and minimum version of the Microsoft Silverlight framework which is required by that Silverlight application. Other parameters are optional.
    Silverlight application web part properties
  7. Go to the live site and enjoy your Silverlight application running in Kentico CMS. Following showcase of the Silverlight 2.0 application can be seen in Ecommerce starter site - simple product list with category filter:

In my next post I'll show you how this Silverlight application communicates with our CMS and how it's getting data from CMS database. See you later.

Share this article on   LinkedIn

Petr Vozak

Technology Partnership Product Owner at Kentico. He works with technology partners to enrich the Kentico product offering and bring greater value to those using our products.


petr.vozak-kentico commented on

Hi James. Which web browser are you using? Last week our testers reported some kind of bug when using Silverlight web part in FireFox, I am not sure if it is the same problem as you have. Unfortunatelly, it hasn't been fixed yet, but next week it should be already fixed. So I recommend you to contact our support team then to ask them for the fix - I think only Silverlight webpart update will be necessary.

James commented on

I tried the things explained aboce but still my application is not visible in CMS.

petr.vozak-kentico commented on

Hi. We haven't created any web part for silverlight streaming videos or applications yet. But I think we will integrate it soon because it might be interesting service for you and the integration looks quite easy. I've prepared a simple example - please put the following code into your page to play the video above using the Silverlight Streaming service: <iframe src="" scrolling="no" frameborder="0" style="width:500px; height:375px"></iframe> where "85149" is Silverlight Streaming numeric account identifier and "Kentico_CMS_Silverlight" is the name you gave your application/video when you uploaded it to the Silverlight Streaming administration server. Here you can find information about Silverlight Streaming possibilities and requirements:

Benjamin commented on

Will there be support for streaming silverlight video's in Kentico?

daydreamer commented on

very impressive already.
will there also be a possibility to show silverlight video's, from a silverlight streaming server or API?