Building Web Pages Using Microsoft Silverlight
page 4 of 6
by Jesudas Chinnathampi (Das)
Feedback
Average Rating: 
Views (Total / Last 10 Days): 23949/ 172

Create a Silverlight Project without using Orcas

Since the User Interface is represented by a bunch of XML tags, we can easily create a XAML file using a text editor such as notepad. Let us see how we can create a web page which will display a text as "Welcome to Silverlight!" To begin, copy the following code and save it as "welcome.xaml."

Listing 2

<Canvas 
xmlns="http://schemas.microsoft.com/client/2007" 
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
x:Name="parentCanvas" 
Width="640" 
Height="480" 
Background="White"> 
<TextBlock Width="306" Height="35" Canvas.Left="10" Canvas.Top="10" 
FontFamily="Verdana" FontSize="18" FontWeight="Bold" Foreground="#FFF50C25" 
Text="Welcome to Silverlight!" TextWrapping="Wrap"/>
</Canvas>

Here comes the tricky part. Well, how can you test the above code? Well, Microsoft now offers hosting of Silverlight applications for FREE (up to 4GB of storage space) at http://Silverlight.live.com. You will need to create a Silverlight streaming account (which is FREE) at https://silverlight.live.com/account/create.aspx.  Once an account is created, you can start uploading your silverlight applications to your account.

But, we need to follow certain procedures before we can upload an application. To begin with, you will have to create a file called, "manifest.xml." To know more about the manifest.xml file, please visit the following link http://dev.live.com/silverlight/createapp.aspx.

For our project, the manifest.xml file should like as follows:

Listing 3

<SilverlightApp>    
<source>welcome.xaml</source>    
<width>400</width>    
<height>100</height>
</SilverlightApp>

View Entire Article

Article Feedback

Title:  
Name:  
Url: ( Optional )
Comment:  
Please add 2 and 4 and type the answer here:

User Comments

Title: Good Article   
Name: Amrish
Date: 9/21/2009 2:36:20 AM
Comment:
Nice article for beginners very well explained.
Title: Thanks a lot   
Name: Nisheeth
Date: 3/4/2009 4:22:05 AM
Comment:
Thanks a lot..
Title: Getting an Error   
Name: Srikanth
Date: 5/20/2008 4:10:33 AM
Comment:
Hi
I have followed the same steps u've mentioned.
When i click the "Launch Applcation Test Page" I see the following error :
Error Code 2262
ParseError
SilverLight AG_E_PARSER_NAMESPACE_NOT_SUPPORTED
welcome.xaml
line 9 Postition 20
Title: Is SilverLight DEAD   
Name: Peter Snow
Date: 12/28/2007 9:46:13 AM
Comment:
Well after waiting many months to see web content with Silverlight I have come to conclution that SilverLight is DEAD. The only site with any content is microsoft. Oh Well, better it die now and let Flash Player get on with the job, at least that is supported and used.
Title: Off the Ground   
Name: dbl
Date: 11/7/2007 10:28:40 AM
Comment:
This is what I needed along with a little google to get off and running. Thanks
Title: Thank you   
Name: Sudarshan
Date: 10/4/2007 6:28:17 AM
Comment:
Thank you for good guideline.
Title: Excellent Approach   
Name: Pravin kumar
Date: 7/16/2007 8:41:26 AM
Comment:
Thanks for this artical.
Title: Thank you   
Name: volnet
Date: 7/13/2007 10:10:46 PM
Comment:
Thank you for your resource of the silverlight tech .
Title: why?   
Name: aspnetx
Date: 7/13/2007 9:21:44 PM
Comment:
why just photos?






Community Advice: ASP | SQL | XML | Regular Expressions | Windows


©Copyright 1998-2009 ASPAlliance.com  |  Page Processed at 11/21/2009 2:07:20 AM  AspAlliance Recent Articles RSS Feed
About ASPAlliance | Newsgroups | Advertise | Authors | Email Lists | Feedback | Link To Us | Privacy | Search