Beta 2 Hands On Labs
Build Your First Hello World Application
In this lab we walk through the steps of creating your first Silverlight
2 application. It is a simple 'Hello World' application but walks you through the
steps of creating the application in Visual Studio 2008 and how the .NET code would
communicate and manipulate the XAML in the Silverlight application.

Build A Sample Silverlight Application
Here are four hands-on-labs that walk you through various concepts in Silverlight
2 and help you build a sample application called Margie's Travel, a travel information
and reservation site. These labs provide walk-through instructions, before and completed
code for you to follow along with.
|
|
Building the UI for Margie's Travel
|
In this lab you will build the main page of the Margie’s travel demo application,
using different layout controls including Grid, StackPanel, TabControl and
ItemsControl. Each container control has its own strength and learning what they
are and how to use them will increase your productivity and happiness.
|
|
|
Styling Margie's Travel
|
In this lab you will be updating the appearance of the Margie’s Travel application
by using Styles, Templates and the Visual State Manager. We’ll walk through
exposing and editing the default template in Blend and from there integrating it
into our application as a Resource in Visual Studio.
|
|
|
Binding Data in Margie's Travel
|
In this lab you will be updating the main page of the Margie’s Travel so that
all controls are driven by real data. Additional all of the controls on the page
are kept in synch to ensure that they are all showing the correct and in some
cases selected data. We’ll be exploring the functionality of Databinding, DataContext,
DataTemplates and Converters. It’s all about the data in this one.
|
|
|
Browser Integration in Margie's Travel
|
In this lab you will learn how to call managed code from JavaScript and how to
call JavaScript from managed code, as well as get a chance to play with the Virtual
Earth API.
|
Using Layout And Data
In this lab we get more advanced and create an application that retrieves data
from a data source. We first walk through various layout aspects in Silverlight
2, creating a user interface for our application. The lab then has additional exercises
on how Silverlight communicates with a Windows Communication Foundation (WCF) web
service to retrieve data, and how to query that data using LINQ to XML.

Partitioning Your Silverlight Application for Deployment
In this lab we demonstrate a technique within Silverlight 2 to enable you to partition
your application into different deployment packages. This will enable your application
to only use what it needs, when it needs it and provide an experience to the user
and improve overall download times for your application. This lab walks through
a simple example of separating details view information from the main portion of
the Silverlight application.
