Silverlight – How to start

After knowing the fact that everybody is interested in silverlight but don’t know how to start, I decided to write a small post on my blog.

As you know silverlight is a very interesting technology not just because it’s new but also for a lot special effects which it generate. Till now silverlight 1.0 is has been released and beta version of silverlight 2.0 is available.

First some points you should know before starting silverlight.

1. What is silverlight and why silverlight?

2. What is WPF?

3. What is Xaml?

4. So what is difference between flash and silverlight?

5. Why is silverlight always surrounded with ajax??

I will try to explain about this in very short and for details Contact our God – Google J

 1. What is silverlight :

 Microsoft Silverlight is a programmable web browser plugin that provides support for rich internet applications such as animation, vector graphics and audio-video playback. Silverlight competes with products such as Adobe Flash, Adobe Flex, Adobe Shockwave, and JavaFX. Now in beta-testing, version 2.0 brings improved interactivity and support for .NET languages and development tools.

  

2. What is WPF:

 The Windows Presentation Foundation (or WPF), formerly code-named Avalon, is a graphical subsystem in .NET Framework 3.0 (formerly called WinFX)[1] and is directly related to XAML.[2] Version 3.0 of WPF is pre-installed in Windows Vista,[3] the latest version of the Microsoft Windows operating system. WPF is also available for installation on Windows XP SP2 and Windows Server 2003. It provides a consistent programming model for building applications and provides a clear separation between the UI and the business logic. A WPF application can be deployed on the desktop or hosted in a web browser. It also enables rich control, design, and development of the visual aspects of Windows programs. It aims to unify a host of application services: user interface, 2D and 3D drawing, fixed and adaptive documents, advanced typography, vector graphics, raster graphics, animation, data binding, audio and video. Although WinForms will continue to be widely used, and Microsoft has created only a few WPF applications, the company promotes WPF for line of business applications.Remember Silverlight is a subset of WPF.

 3. What is Xaml.

 Extensible Application Markup Language (XAML, pronounced zammel ([zæ:mɛl]) is a declarative XML-based language created by Microsoft which is used to initialize structured values and objects. It is available under Microsoft’s Open Specification Promise.[1] The acronym originally stood for Extensible Avalon Markup Language – Avalon being the code-name for Windows Presentation Foundation (WPF).

 4. So what is difference between flash and silverlight.

 I hope will get answer very early but first think why I asked this question.

 5. Why silverlight always surrounded with ajax??

 

Hmmmm ……. now I get caught. Actually most of the things (specially definitions) are from Wikipedia But I know you still not getting the point…

  

Now let me explain. As I think silverlight is nothing but a new technology which is developed to improve web presentation layer.

 

 You might ask what need of improvement is or where is the need of improvement?? So as you have already experienced if you need a background with different colors and gradient of the colors, what will you do?? Answer is very simple you will put an image in back ground or to make it lighter you will cut strip only and repeat it in x or y direction.

  

And this is the place where I need improvement I want more flexibility in html. I want to give glassy or 3D effects to my website and here html get failed.

 

So obviously if you have to play with presentation layer then you should have to play with markup language. And XAML is nothing but it’s your tool here. Actually Xaml is the markup language which has all these capabilities. And how can you use, you can learn easily with Visual Studio or Expression Blend.

 

I hope now will get the point why silverlight always discuss with ajax. Yes you are right as silverlight is deals with client side so to communicate with server you need ajax (xmlhttp request) .

 

I am providing here some links that you can start your Silverlight Mission.

 

There are 8 tutorials from Mr. Scott .

 

Part 1 – Creating a Hello World with Silverlight 2 and VS 2008
Part 2 – Using Layout Management
Part 3 – Using Networking to Retrieve Data and Populate a DataGrid
Part 4 – Using Style Elements to Better Encapsulate Look and Feel
Part 5 – Using the ListBox and DataBinding to Display List Data
Part 6 – Using User Controls to Implement Master/Details Scenarios
Part 7 – Using Templates to Customize Look and Feel
Part 8 – Creating a Digg Desktop Version of our Application using WPF

 

Again Microsoft silverlight website has also very good videos and tips.

 

http://silverlight.net/getstarted/

  

Next time we will discuss some more on silverlight. Till bye n take care.

11 thoughts on “Silverlight – How to start

  1. soumya says:

    I got the instruction……..

    “…..When we click the “OK” button Visual Studio will prompt us with an additional dialog that allows us to choose whether we want to create just a Silverlight Application project, or optionally also add a server-side ASP.NET Web project to our solution to host the Silverlight Application within. For this sample we’ll choose to add an ASP.NET Web Application project to the solution as well and name it “DiggSample_WebServer”. …………………

    WHEN I CLICK OK VISUAL STUDIO NOT SHOWING ANY
    ADDITIONAL DIALOG ……
    how..to get it…..????????

  2. AbeesMuhammed says:

    hi,

    when i trying to open any SilverLight Project it will give an Error Like ‘The type initializer for ‘MS.Internal.Silverlight.Host.RuntimeInterop’ threw an exception’ .What is this Error?How Can I Solve This Issue.

  3. Shubhashish Pandey says:

    hi saumya

    just add ur existing silverlight project in sol’n .
    then right click on the project in which you want to add silverlight hosting page in sol’n explorer
    go to properties of this project you will see their an option for silverlight Application click on that and add ur project there again it will do all work what you want like generating client bin file and add all needed refferences

    if ur problem is still unsolved plz tell me

    thanks
    -Shubhashish

  4. Shubhashish Pandey says:

    for the error
    ‘The type initializer for ‘MS.Internal.Silverlight.Host.RuntimeInterop’ threw an exception’

    are u able to start a new silverlight project or not, if not then hopefully this is problem of compatibility
    first of all you should have vs2008 sp1 and silverlight2.0 sdk
    u can follow these steps to reinstall it in a manner click on link below

    How to upgrade Silverlight app from Beta 2 to Silverlight 2
    Keep Silverlighting!!

  5. Rajee maharjan says:

    i install the silverlight.exe when i open the visual studio 2008 there was not silverlight file what happend give me solution

Leave a reply to Zeeshan Cancel reply