1. What is Silverlight?
Silverlight is a cross-browser, cross-platformPlug-insTo bringNext Generation Based on. NetOfMedia experience and rich interactive applicationsProgram. Silverlight providesFlexible programming model, Supports Ajax, VB, C #, Python, Ruby, and other languages, andIntegrated into existing network applications. Silverlight is applicable to mainstream browsers running on Mac or windows.Fast and low-cost transmission of high-quality video information
Microsoft Silverlight is a cross-browser, cross-platform plug-in for delivering the next generation. net Based media experiences and rich interactive applications for the web. silverlight offers a flexible programming model that supports Ajax, VB, C #, Python, and Ruby, and integrates with existing web applications. silverlight supports fast, cost-valid tive delivery of high-quality video to all major browsers running on the Mac OS or windows.
2. Development Environment
Runtime:
Microsoft Silverlight 1.1 Alpha refresh
Development tools:
Microsoft visula maxcompute 2008
Silverlight 1.1 tools alpha for Visual Studio 2008
Design tools: (optional)
Expression blend 2
3. helloworld
Open vs, create a Silverlight project, and modify the default generated page. XAML file:
<Canvas X: Name = "parentcanvas"
Xmlns = "http://schemas.microsoft.com/client/2007"
Xmlns: x = "http://schemas.microsoft.com/winfx/2006/xaml"
Loaded = "page_loaded"
X: class = "silverlightproject1.page; Assembly = clientbin/silverlightproject1.dll"
Width = "640"
Height = "480"
Background = "white"
>
<Textblock X: Name = "TXT" text = "helloworld" mouseleftbuttondown = "sayhi"/>
</Canvas>
Modify page. XAML. CS:
Using system;
Using system. Windows. controls;
Using system. Windows. input;
Namespace silverlightproject1
{
Public partial class page: canvas
{
Public void page_loaded (Object o, eventargs E)
{
// Required to initialize Variables
Initializecomponent ();
}
Protected void sayhi (Object Sener, mouseeventargs E)
{
This.txt. Text = "helloworld to Silverlight ";
}
}
}
Press Ctrl + F5 to run.