silver3

♣ Open Visual Studio .net software

♣ File -> New -> Project.

♣ Select language as Visual C# and type of application as Silver Light application, click OK button

♣ It will open new silver light application window, here under new web project type we have to select ASP.net website, click OK Button

♣ With this process it will open Silver Light application development environment

♣ By default Silver Light development environment will come with two projects like below

♣ By default Silver Light project will come with one page that is “MainPage.xaml”

Note : To define the silver light user interface we have to use xaml programming. Due to that reason every silver light user interface extension will be .xaml

♣ Every silver light user interface will come with two files.

.xaml File :


♣ It will support two modes

            1. Design Mode

            2. Xaml Mode

Design Mode :


♣ In design mode this file will display the silver light designer window.

Xaml File :


♣ In this mode it will display the xaml code window like below

<usercontrol>

<grid>

//Here we have to write the appearance code

</grid>

</usercontrol>

Xaml.cs File:


♣ It is a C#.net class file

Structure of xaml.cs File :


Using System.Windows.Controls

Namespace SilverLightApplication
{
Class MainPage : UserControl
{
//Business Logic Code
}
}