Sunday 23 October 2011

Create First Silverlight Application

Here we are creating a simple application in Silverlight. In order to create Silverlight application we have to install followings software :
Lets begin now :)

1) Open Visual Studio -> File -> New Project.

2) In Project Type :- Select Silverlight and In Template :- Select Silverlight Application And In Name :- Give name of  your  project[As I write SLHello] -> Ok.

 

3)  After Click of 'Ok' button, you will see a Dialog window of  'New Silverlight Application'. Select  'Asp.Net Web Application Project' -> Ok.



4) In Solution Explorer :- Click 'MainPage.xaml', here you are able to see Design Window, To overcome this problem, Go to Expression Blend.

 
5) In Expression Blend :- Click 'Open Project' -> Open your project.

6) In Project[left side panel] -> Click MainPage.xaml. In Asset[left side panel] -> Click Controls -> Drag Button control. In Property[Right side panel] -> you can modify Text, Appearance, etc of Button.



7) Save all changes in Express Blend that also reflected in your Silverlight application, run the application.

  


This is simple application to see how Silverlight works. In next post we will see how Silverlight works with Data Binding.