Posts tagged: Create silverlight website

Oct 14 2009

how to start silverlight project

Starting Silverlight 2.0 using Asp.net 3.5

Step1: Open VS2008 –>File –>New –>Project

start silverlight project

start silverlight project

Step2: Choose Project Type (Silverlight) –>Right side choose Silverlight Application –>Ok

Silverlight Application

Silverlight Application

step3: choose this  –> Add new Asp.net web Project to the solution to host

Silverlight

Step4: Silverlight Toolkit and Usercontrol window will display

Page.xaml (Silverlight Usercontrol window)

<UserControl xmlns:basics=”clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls”  x:Class=”SilverlightApplication1.Page”
xmlns=”http://schemas.microsoft.com/winfx/2006/xaml/presentation”
xmlns:x=”http://schemas.microsoft.com/winfx/2006/xaml”
Width=”400″ Height=”300″>
<Grid x:Name=”LayoutRoot” Background=”White”>

//Drag silverlight control between this Grid Ex: Calender Control

<basics:Calendar></basics:Calendar>

</Grid>
</UserControl>

Step 5: Run the Project

Alibi3col theme by Themocracy