Getting started with Silverlight

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.