Welcome to MSDN Blogs Sign in | Join | Help

The web just got even better... [Silverlight announced at MIX07!]

During his keynote at the MIX07 conference in Las Vegas, Scott Guthrie showed off some of the power of Microsoft's recently announced Silverlight platform. In particular, the ability to easily run managed code in the web browser - coupled with a powerful rendering engine - seems like it will to radically change the landscape of the web. My team had the privilege of writing the Silverlight Airlines demonstration he used to show off just how easy it is to develop with Silverlight. Demoed on stage, it looked something like the following image:

Silverlight Airlines Demonstration

Now that your appetite is whetted, go ahead and click here (or on the image above) to view the demo in your browser with the Silverlight 1.1 Alpha thanks to the seamless cross-browser, cross-platform support that Silverlight provides.

When our manager Shawn Burke asked us to put this demo together, my coworker Ted Glaza and I had practically no experience with Silverlight or WPF. So we spent about a week playing around with the technology to learn how it worked. By that time, the general concept of the demo was fairly well established and we spent time the next week developing the foundations of the application. Before long, we had a working demo that we showed off to Scott. The third week was spent incorporating visual feedback from a designer and adding some finishing touches. For those of you keeping track at home, that's one cool app written by two developers in just three weeks - beginning with nothing and building on top of a platform that was still being developed - pretty compelling, I think!

In the spirit of openness and learning, you can click here to download the complete source code for this demo application and play around with it yourself!

A few notes on the application:

  • It's implemented as three self-contained controls (the map, calendar, and itinerary picker) that are hooked together via a couple of simple event handlers and property accessors.
  • The goal of code/design separation was achieved here to an extent I haven't experienced before. In particular, the fact that we were able to incorporate an external party's XAML design into our existing code with such ease was a rare treat.
  • I experimented with a vaguely CSS-y approach to XAML design with the calendar and itinerary picker controls I wrote, overlapping a number of different styles and using opacity to display the right style at the right time. I liked the way it worked out here because it enabled me to (for example) completely define the look of the calendar's day cells in a single XAML file - even though that style is actually somewhat complex (there are different styles for alternating months, weekends, hovering, selection, etc.).
  • The "plane flying" animation was Ted's doing and adds a really nice effect. All it took to implement was a plane graphic, a few transforms, a couple of animations, and a bit of high school math. :)
  • The XAML content is automatically resized to fit the browser window (while maintaining its original aspect ratio) with some JavaScript code that hooks the Silverlight control's onLoad and onResize events and manipulates two simple transforms it creates for that purpose. Silverlight lets you program against it with C# and JavaScript - at the same time!
  • In order to compile and build the source code, you need Visual Studio "Orcas" Beta 1 and the Silverlight Tools installed on you machine. Complete details and download links for these tools (and others) can be found on the Silverlight web site.
  • The inspiration for the demo application came from Bret Victor's Magic Ink essay which is a great read and recommended for anyone who's interested in user interface design.

The Silverlight Airlines demo was a fun project to work on - I look forward to be seeing (and doing!) a lot more with Silverlight in the coming days!

PS - Since the keynote presentation, there has been some interest in reusing the calendar control. Beyond making the source code available here, I may write a follow-up blog post going into more detail about the calendar itself. As a quick teaser: it's capable of more sophisticated display than what's in the demo application. :)

PPS - If you watched the Scott Guthrie keynote, you probably saw that there was a time Scott tried to switch the display screen over to the Mac to demonstrate something and it took a while for the conference's A/V folks to actually make the switch. A couple of people have asked if this delay was due to a problem with the Mac or Silverlight. I happen to have been sitting backstage mere inches away from the Mac in question (conferences use KVM switches to keep all the demo machines backstage) and I can assure you that there was no technical issue with the Mac or Silverlight. Aside from the conference tech taking a little while to switch the display over, there were no technical glitches during the demo. :)

Published Tuesday, May 01, 2007 4:56 PM by Delay
Filed under:

Attachment(s): SilverlightAirlinesDemo.png

Comments

# MIX Keynote Demo "Silverlight Airlines" app source posted

Tuesday, May 01, 2007 8:29 PM by Shawn Burke's Blog

A little more than 24 hours after ScottGu did his keynote, David has the bits posted for download . Thanks

# Silverlight 1.1 "Airlines" managed code sample published

Tuesday, May 01, 2007 8:50 PM by Brad Abrams

Wow -- less than a day after they keynote we have the source code for the "Silverlight airlines" application

# Silverlight Airlines Demo and Source Online

Wednesday, May 02, 2007 3:02 AM by Mike Harsh's Blog

David Anson has posted the source for the Silverlight Airlines application that was shown at the MIX

# re: The web just got even better... [Silverlight announced at MIX07!]

Wednesday, May 02, 2007 4:20 AM by pierlag

Very good job ....

Pierre

# Silverlight Mix07 keynote demo available for download

Wednesday, May 02, 2007 5:36 AM by Mark Johnston's Developer Experiences

During Scott Guthrie's keynote demo, he coded up a cool airline demo using Silverlight (you know the

# [WPF] La démo du Keynote du Mix 07 par Scott Guthrie est disponible en téléchargement

Wednesday, May 02, 2007 6:32 AM by Thomas Lebrun

Si vous avez regardez le Keynote du Mix 07 , vous avez sans doute vu la superbe démo de Silverlight par

# SilverLight Airline demo with source code

Wednesday, May 02, 2007 7:08 AM by Microsoft SilverLight

SilverLight Airline demo with source code

# Silverlight Airlines - A cool MIX demo, now available to you

Wednesday, May 02, 2007 9:52 AM by Canadian User Experience

One of the demos that really sticks in my mind from the whirlwind that has been MIX07 was Silverlight

# re: The web just got even better... [Silverlight announced at MIX07!]

Wednesday, May 02, 2007 9:57 AM by ssuing8825

Exciting demo and thanks for the source.  I would have liked to see the example using the webservice, as your demo makes it look easy to do, but I have a different expirence.

# Silverlight Airlines keynote demo online

Wednesday, May 02, 2007 11:55 AM by Robert Burke's Weblog

Last night, Delay announced the publishing of the Silverlight Airlines Demo from Monday's keynote. He

# Silverlight Airline Sample

Wednesday, May 02, 2007 8:50 PM by Community Silverlight content

During his keynote at MIX, one of the demo’s Scott Guthrie used to show the power of Silverlight was

# Nieuws van Mix (Silverlight, Live Services)

Thursday, May 03, 2007 5:20 AM by Alles over Hosting en Software + Services

Hi All, Helaas kan ik niet zeggen dat jullie razende reporter deze week vanaf de MIX verslag doet....

# Silverlight Airlines Demo Online

Friday, May 04, 2007 3:59 AM by Walter Stiers - Academic Relations Team (BeLux)

Robert Burke's Weblog has an entry on Silverlight Airlines Keynote Demo Online . It points to the the

# re: The web just got even better... [Silverlight announced at MIX07!]

Friday, May 04, 2007 3:20 PM by Delay

ssuing8825,

To resolve your problem, please try adding the [System.Web.Script.Services.ScriptService] attribute to the class you have that extends System.Web.Services.WebService. (You may need to add a reference to System.Web.Extensions first.) This should make the web service as easy to call as you expect. :)

# Silverlight Airlines demo and source code available

Monday, May 07, 2007 7:31 AM by Mental block

Επιστρέψαμε λοιπόν από το Las Vegas την προηγούμενη Παρασκευή, ακόμη κατά το μεσημέρι με πιάνει μια μικρή

# Silverlight Airlines Demo

Monday, May 07, 2007 12:30 PM by MGM

The demo was a thing of beauty (and functionality).  Just downloaded the source.

Can't wait to be the first airline that uses the concept as soon as Silverlight goes gold!

# Silverlight

Monday, May 07, 2007 5:49 PM by ScottGu's Blog

Last Monday I delivered one of the keynotes at the MIX conference in Las Vegas, and discussed a new project

# Silverlight

Monday, May 07, 2007 6:00 PM by BusinessRx Reading List

Last Monday I delivered one of the keynotes at the MIX conference in Las Vegas, and discussed a new project

# Silverlight

Monday, May 07, 2007 6:15 PM by ASP.NET

Last Monday I delivered one of the keynotes at the MIX conference in Las Vegas, and discussed a new project

# Silverlight に関する Scott Guthrie のエントリ

Tuesday, May 08, 2007 7:36 AM by develop .net

今度は、MIX07 で基調講演を担当した Scott Guthrie のエントリ をご紹介します。Scott Guthrie は、本社の開発本部における General Manager であり、ASP.NET/AJAX

# Silverlight

Wednesday, May 09, 2007 1:47 AM by Joycode@Ab110.com

【原文地址】 Silverlight 【原文发表日期】 Monday, May 07, 2007 2:49 PM 上个星期一,我在拉斯维加斯的MIX大会上做了一个主题演讲,讨论了过去的一年里花费了我大部分时间的一个新项目

# Silverlight Airlines demo from Mix

Wednesday, May 09, 2007 9:08 AM by Chad Brooks Web Log

Did you see the Silverlight Airline Demo at Mix? Wish that you had seen it? Well you can download it

# Silverlight

Wednesday, May 09, 2007 12:18 PM by ASP.NET Chinese Blogs

【原文地址】 Silverlight 【原文发表日期】 Monday, May 07, 2007 2:49 PM 上个星期一,我在拉斯维加斯的MIX大会上做了一个主题演讲,讨论了过去的一年里花费了我大部分时间的一个新项目:

# MIX 07 で行われたデモやスライドがダウンロード可能

Monday, May 14, 2007 1:26 AM by ナオキにASP.NET(仮)

MIX 07 で行われたセッションがストリーミングで見れたり、スピーカーの方がデモやスライドのダウンロードについて blog で告知していたりするので解る範囲内でまとめてみました(ASP.NET 開発チームがメインです)。

# Silverlight kehitysresursseja

Tuesday, May 15, 2007 9:19 AM by Architects Plot

Silverlight tuntuu kommenteista ja yhteydenotoista päätellen innostavan myös suomalaisia kehittäjiä.

# Silverlight Airline フライト検索デモ

Friday, May 18, 2007 12:48 AM by 川西 裕幸のブログ

Dely's Blog に、MIX 07 のキーノートでデモしていたSilverlight Airlineフライト検索のデモ (Silverlight v1.1 Alpha)が公開されています。

# Silverlight Add-In for Reflector

Tuesday, May 22, 2007 10:50 AM by Javier G. Lozano

Silverlight Add-In for Reflector

# Lighting up the XML Paper Specification [Proof-of-concept XPS reader for Silverlight!]

Tuesday, May 22, 2007 8:16 PM by Delay's Blog

Since getting involved with Silverlight and finding out the XPS document type WPF enables has XAML at

# Silverlight

Wednesday, May 30, 2007 11:30 PM by tongdoudpj

Last Monday I delivered one of the keynotes at the MIX conference in Las Vegas, and discussed a new project that I've been spending most of my time working on over the last year: Silverlight. Silverlight is a cross platform, cross browser .NET plug-in

# A Lap Around Silverlight

Tuesday, June 05, 2007 8:26 AM by SteelePrice.Net

# My "Lap Around Silverlight" Talk at TechEd

Wednesday, June 06, 2007 11:53 PM by ScottGu's Blog

On Monday I gave an overview talk called "A Lap Around Silverlight" at TechEd in Orlando. You can download

# A new Silverlight version has been released! [Samples updated for the 1.1 Refresh]

Friday, July 27, 2007 7:14 PM by Delay's Blog

With today's release of the Silverlight 1.0 RC and 1.1 Refresh , I've updated the Silverlight samples

# A new Silverlight version has been released! [Samples updated for the 1.1 Refresh]

Friday, July 27, 2007 7:15 PM by Noticias externas

With today's release of the Silverlight 1.0 RC and 1.1 Refresh , I've updated the Silverlight

# איך לעשות Upgrade ל Silverlight 1.1 בגרסה החדשה

Saturday, July 28, 2007 7:50 PM by It's All About Causality

Delay מפרט את השלבים שהוא עשה כדי לעשות Upgrade לכמה דברים שהוא כתב ב Silverlight 1.1. בינהם ה Air Lines

# Silverlight Resources

Wednesday, August 01, 2007 4:03 PM by Canadian User Experience

Cross posted at http://davidcrow.ca/article/1637/silverlight-resources I’m about to start building my

# Silverlight, Moonlight, and XAML

Tuesday, August 14, 2007 5:59 PM by BostonGIS Blog

We've been recently following the whole Microsoft Silverlight and Novell Moonlight projects and have been amused. We haven't gotten into it enough to be impressed, but we think its definitely a technology to keep an eye on for anyone wanting to creat

# Silverlight, Moonlight, and XAML

Tuesday, August 14, 2007 5:59 PM by BostonGIS Blog

We've been recently following the whole Microsoft Silverlight and Novell Moonlight projects and have been amused. We haven't gotten into it enough to be impressed, but we think its definitely a technology to keep an eye on for anyone wanting to creat

# re: The web just got even better... [Silverlight announced at MIX07!]

Wednesday, September 05, 2007 8:38 AM by aravindrises

Exciting demo . obviously the resizing of the plugin when the browser resizes. I went thru the code but still i'm a beginner can u tell me where it hooks the browser resize event - thanks

# Silverlight Airlines Sample Code

Wednesday, September 05, 2007 10:03 AM by Frank La Vigne

# re: The web just got even better... [Silverlight announced at MIX07!]

Wednesday, September 05, 2007 1:51 PM by Delay

aravindrises,

Have a look at the onLoad/resize methods in SilverlightAirlines\JS\CreateSilverlight.js for the JavaScript code that hooks the browser resize event and keeps the application sized properly.

# Demos: Web con VS2008 y Silverlight con VS2008

Wednesday, November 28, 2007 1:28 PM by SergioTarrillo's RichWeblog

Holas! En los eventos pasados , quedo pendiente la publicación de las demos que realicé. Demo 01 - Desarrollo

# Nieuws van Mix (Silverlight, Live Services)

Monday, December 10, 2007 9:21 AM by Hosting en Software + Services

Hi All, Helaas kan ik niet zeggen dat jullie razende reporter deze week vanaf de MIX verslag doet. Doordat

# Demos: Web con VS2008 y Silverlight con VS2008

Friday, January 18, 2008 11:56 AM by ASP.NET Espanol Blogs

Holas! En los eventos pasados , quedo pendiente la publicación de las demos que realicé. Demo 01 - Desarrollo

# 关于Silverlight的版本问题

Thursday, January 31, 2008 1:42 AM by 一瞬间

# Silverlight Airline has crashed.

Wednesday, May 14, 2008 9:55 AM by norisk

I get this message:

Error 1001, Parser error, Default.xaml, Line 23, Position 15

No can use.

# re: The web just got even better... [Silverlight announced at MIX07!]

Wednesday, May 14, 2008 1:14 PM by Delay

norisk,

It sounds like you tried to run the sample above (written for the Silverlight 1.1 Alpha) on a machine with Silverlight 2 Beta 1 installed. I see the same error if I try to do that. Someone kindly update the sample for Beta 1 and posted it to http://silverlight.net; the following links should have what you're looking for:

Sample: http://silverlight.net/samples/2b1/silverlightairlines/run/default.html

Source: http://silverlight.net/samples/2b1/silverlightairlines/silverlightairlines.zip

Sorry for the confusion!

Anonymous comments are disabled
 
Page view tracker