MIX

Windows Phone 7 and Silverlight – Details Revealed

In the opening keynote of MIX 10 Scott Guthrie confirmed the rumour spreading the past weeks: the supported development platform for the Windos 7 Phone Series is Silverlight and XNA. For those – like myself – who were prepared for this news there were still quite some surprises in the details:

  • Unlike Windws CE  where the phone CLR was a reduced version of the .NET CLR the Windows Phone 7 will support the full Silverlight framework. As Scott Guthrie said: “This isn’t Silverlight lite. This isn’t Silverlight different. This is Silverlight.
  • ScottGu demoed the development environment – it is very similar to Visual Studio with a built-in emulator that supports multi-touch
  • The development tools for Windows Phone 7 are free! Download them from here. The Windows Phone Developer Tools include Visual Studio 2010 Express for Windows Phone, Windows Phone Emulator, Silverlight for Windows Phone and XNA Game Studio 4.0 CTP
  • The Windows Phone 7 ships with an extended Silverlight 3 runtime and  supports DeepZoom as well. ScottGu also announced that Silverlight 4 ships with a Pivot control – a great data visualization tool. We’ll have to wait to use Pivot on the Windows Phone 7 though until the runtime is upgraded to Silverlight 4 unfortunately.
  • The Windows Phone 7 Marketplace will be a global application catalog, not restricted by regional content restrictions. Developers will receive 70% of the price for apps and games.
  • Partners who have had early access to the Windows Phone 7 development tools showed off their great applications. This included:
    • A news application demo (video)
    • eBay who’ve built a cool out-of-browser lister application in just 8 weeks
    • A prototype Netflix application
    • Shazam‘s Silverlight app
    • Graphic.ly‘s comic reader using DeepZoom
    • A Major League Soccer application using push notification (video)
    • A Marionette application where ScottGu made fun of Steve Ballmer (video)
    • The Seesmic Desktop application – the entire Seesmic platform has been ported to Silverlight!
    • Demo of the Foursquare application (video)

So if these details have made you interested read a more detailed summarry of the keynote or just go and download the Windows Phone 7 development toolkit!

My MIX 10K entry – SilverCooler

I’ve entered the MIX 10K competition where the goal is to write an application using no more than 10KBytes of source code in Silverlight. I’ve decided to implement a cocktail selector application – strictly listing alcohol free cocktails only – using the web services I’ve previously built for a popular cocktail site, iCocktail.co.uk.

ICocktail.co.uk was built with Flash using XML services and since Silverlight is indeed as powerful as Flash implementation was quite an ease – my only problem was squishing in the 10K limit (thanks for Colin’s post on some tips on minifying the code). The application I’ve developed is the following:

SilverCooler - Gergely Orosz's entry for MIX 10K

If you like it, please vote for it on its the MIX 10K entry site.

One thing all people noticed when looking at the application at first is the cool “bouncing” effect of the cocktail name. In the flash version this was done by using an EaseOutElastic transition. Not surprisingly Silverlight has similar animation effects as Flash, these are called easing functions. To achieve the bouncing effect I only had to add the following code to the animations changing the width and height of the shape:

DoubleAnimation animation; // The animation changing width or height of the shape popping up
animation.EasingFunction=new ElasticEase(){ Oscillations=3, Springiness=1, EasingMode=EasingMode.EaseOut };

Oh, and if you’re in for some more drinks, check out iCocktail.co.uk as well!

 Scroll to top