Page view counter
Home > Learn > Tutorials
The Silverlight Geek Tutorials by Jesse Liberty

The Silverlight Geek Tutorials by Jesse Liberty

The Silverlight Tutorials tell the story of Silverlight 2. It is our goal to provide a compact, readable, intensive immersion into the most important new aspects of Silverlight 2. The tutorials and their source code will be available here and each time a new tutorial is added it will be announced on Jesse Liberty’s blog.

Silverlight 2 Tutorials

Controls

Tutorial 1: Controls
Controls provides a tour of the Silverlight layout controls and how they are used as well as a detailed explanation of events and event handlers and the use of Routed Events and event bubbling in Silverlight. An example application is created in which both an out of the box control and a composite control are dragged by responding to various mouse events. Finally, the relationship between creating objects in XAML and creating objects in managed code is shown along with an example of the dynamic creation of new objects.
View in VB or C#

Data-binding

Tutorial 2: Data-binding
The roles of target and source and the modes of data binding are introduced, and a business object that implements INotifyPropertyChanged is created and bound to controls on a form. The purpose of the DataContext property is explained and an example is created in which two instances of the business object provide different Data Contexts for binding. Binding to various controls (check box, text box text block) is shown as well as binding from a collection to a listbox, along with one way and two way binding. In an afterword, the concept and advantages of Dependency Properties are explained in some detail.
View in VB or C#

Accessing Data from a SQL Database

Tutorial 3: Accessing Data from a SQL Database
Many readers of the first three tutorials have written asking how they can use DataBinding to bind to data in their SQL database. This tutorial will walk through accessing SQL data by creating a Web Service and then using LINQ to create a data source you can bind to. The control we will bind to will be the DataGrid.
View in VB or C#

User Controls

Tutorial 4: User Controls
UserControls are extraordinarily useful. Variations of them have been around since the days of #include files in classic ASP. A UserControl is basically a module of XAML and code that you can easily re-use throughout your program. They are, in effect, a simple form of custom control through aggregation of existing controls and code, much like User Controls in ASP.NET
View in VB or C#

Expression Blend for Developers

Tutorial 5: Expression Blend for Developers
This tutorial introduces the second major development tool for creating Silverlight Applications: Expression Blend. Jesse Liberty walks you through Expression Blend 2.5 using a chat client as a metaphor. You will learn to assemble the User Interface components, such as items from the toolbox and layout controls.
View in VB or C#

Styles, Templates and Visual State Manager

Tutorial 6: Styles, Templates and Visual State Manager
This tutorial will demonstrate how you can modify the appearance of controls in your application. There are numerous ways to do this, and various tools to do it with; I will attempt to cut through the noise and focus in on the three most common use cases.

DataBinding & DataTemplates Using Expression Blend

Tutorial 7: DataBinding & DataTemplates Using Expression Blend
In Tutorial #2, Data Binding, we explored how to bind relatively simple data to relatively simple controls. This tutorial will dive a bit deeper, looking specifically at two topics that are of particular importance in DataBinding: Binding complex objects to List controls and using Expression Blend vs. creating bindings in XAML by hand.
View in VB or C#

Multi-page Applications

Tutorial 8: Multi-page Applications
This tutorial will show you how to build an application that allows you to switch from one page to another, passing data from the first to the second. To demonstrate the usefulness of this, we’ll create a list of many words in the first page, and pass them to one of two other pages: Search or Count. The Search page will use the list as the source for an AutoComplete box, the Count page will use the words as the data for a graph.
View in VB or C#

ADO.NET DataEntities and WCF Feeding a Silverlight DataGrid

Tutorial 9: ADO.NET DataEntities and WCF Feeding a Silverlight DataGrid
Key to virtually every business application is the ability to move data from a database to the User Interface. While there are many issues to discuss in great detail, this tutorial will take a “drop line” approach – the shortest possible path using the simplest technology to demonstrate one way of moving data from there to here.
View in VB or C#

Hyper-Video

Tutorial 10: Hyper-Video
Hyper-video provides targeted content by displaying visual cues to link users to more information or related topics during a video presentation. Learn the essentials of how to build hyper-video utilizing Visual Studio 2008, Expression Blend, and Expression Encoder.

Microsoft Communities