Silverlight 5 Beta available!

Great announcements today during MIX11 in Las Vegas: Silverlight 5 Beta is available for download!

This is a list of some of the new features available:

  • Multiple Windows instances in Out-of-browser applications;
  • GPU-accelerated XNA-compatible 3D and immediate-mode 2D API;
  • DrawingSurface control for rendering 3D content;
  • Double (and multi) click support via the ClickCount event data property;
  • Low-latency sound effects and WAV support;
  • ItemsControl search via the new TextPath attached property;
  • New MarkupExtension base class for defining XAML markup extensions;
  • Data Binding enhancements:
    • Possibility to set breakpoints in XAML;
    • Data Binding enabled in Styles;
    • Binding to ancestors in the VisualTree using the RelativeSource;
    • New DataTemplate.DataType property to bind data templates to the object type;
    • Binding to dynamically-generated properties via the ICustomTypeProvider interface;
    • Application model enhancements:
      • Trusted applications can now be enabled to run inside the browser;
      • Trusted applications can now access the local file system;
      • Multiple Windows instances in trusted Out-of-browser applications.
  • Significant performance improvements, fixes and much more.

 Check out these useful links:

Happy Silverlighting!

Prism 4.0 – Useful Resources and Templates (including MEF support)

A quick shoutout to point out that David Hill has just released a new version of the PRISM Template Pack now including both MEF and Unity support.

Other useful resources about PRISM 4.0:


Developer’s Guide to Microsoft Prism 4

Now available from O’Reilly


Native Extensions 2.0 For Microsoft Silverlight Released

Version 2 of the “Native Extensions For Microsoft Silverlight” is now available for download here.

These libraries contains several COM wrappers and samples for:

  • Touch APIs – Manipulation, Gestures and Inertia processing;
  • Message Interception – Allow applications to intercept Window messages sent to the containing window;
  • Sensor API – Provide full access to the Windows 7 Sensor API;
  • Local Encoding – Allow applications to capture webcam audio/video input into a local H.264/AAC-LC encoded media file. Also allow capturing of application user interface activity as video with audio;
  • Taskbar Access – Allow applications to integrate various Windows 7 taskbar features like taskbar button overlays, jump lists, taskbar button progress notifications, etc;
  • Speech API – Allow applications to use Windows 7 Speech-to-Text and Text-to-Speech capabilities;
  • Portable Devices – Allow applications to enumerate content on connected devices like music players, digital cameras etc.;
  • Windows 7 Notification Area (System Tray) support;
  • “Single application instance” pattern support.

Happy Silverlighting!

Using the Multi-Touch Behavior in a Windows Phone 7 Multi-Page application

In these days I’m receiving several questions in the Multi-Touch Behaviors forums about enabling Multi-Touch manipulations in Windows Phone applications composed by more than one page.

Today I’ve modified the available sample inserting an additional page containing an image enabled for translation, rotation, zoom and inertia via the usual “MultiTouchBehavior“:


Starting from release 0.6.1 it’s now possible to use the Behavior in different pages of the application, in this way enabling multi-touch in different elements of a Windows Phone 7 application:

    <Image x:Name="_image"
        Source="{Binding SelectedPicture}">
                    MinimumScale="30" MaximumScale="200"

As usually the sample code is available for download on, check out the Visual Studio solution “SilverlightWP7MultiTouch.sln” which contains all necessary libraries.

Happy Silverlighting!

Silverlight 5 Announced!

Today ScottGu announced some new amazing features that will be available in Silverlight 5. The complete list is available here:

Planned release date: 1H 2011 (Silverlight 5 Beta)2H 2011 (Final Release)

Useful links:

Adding / Removing the Multi-Touch Blend Behavior using C# code-behind

I’ve received several requests about the modalities of enabling multi-touch on a UI element using the Behavior available on my CodePlex project.

The traditional syntax using XAML is here:

<Image Source="Images/Desert.jpg" x:Name="image1">
            MinimumScale="10" MaximumScale="100"

What about if you want to achieve the same result using C#? Just obtain a collection of behaviors for your element and then add/remove the MultiTouchBehavior using the following syntax:

private void btnAttach_Click(object sender, RoutedEventArgs e)
    var behaviors = 
    var mtb = new MultiTouchBehavior
        IsRotateEnabled = true,
        IsScaleEnabled = true,
        IsTranslateXEnabled = true,
        IsInertiaEnabled = true,
        AreFingersVisible = true,
        MinimumScale = 20,
        MaximumScale = 200
    mtb.Move(new Point(200, 150), 45, 100);

private void btnDetach_Click(object sender, RoutedEventArgs e)
    var behaviors = 
    if (behaviors.Count > 0)

As usually the source code is available for download on the Multi-Touch CodePlex project (check out the SilverlightWP7MultiTouch Solution).

Oh, did I already say that it also works on Windows Phone 7? 😉

Happy Silverlighting!

Duplex sample updated to Silverlight 4

I was following this thread on the Silverlight forums and was asked to update the Duplex sample to Silverlight 4.

Click here to download the code.

More information about Duplex Services are available here:

Happy Silverlighting!

NDepend v3.2.0 available: Visual Studio Integration and Contextual-Sensitive help

Check out this new article by Patrick Smacchia about the new Contextual-Sensitive help feature in NDepend v3.2.0.

More details about NDepend (which now supports Visual Studio full integration) are available here:

Register for the Silverlight Firestarter!

Light up your Silverlight skills with the all-new Global Silverlight Firestarter!

What is the Silverlight Firestarter?

–          An Event: A one day, global, live streamed and on demand event keynoted by Scott Guthrie

–          Training: New self-paced labs and walk through videos

–          Interactive: Got questions? Get your answers! Watch live and ask the Silverlight product team questions during the event.

–          Why Silverlight? Silverlight is Microsoft’s strategic development platform for building interactive applications across desktop, phone, and the browser.

Something for Everyone

–          Just starting out with Silverlight? Watch our On-Ramp sessions and work on hands on labs to get you started.

–          Already Building business applications? Watch the event live and learn how to create compelling business applications with Silverlight.

–          Got questions? Engage with the Silverlight product team live or in person with our interactive chat.

When Register How Much?
December 2, 2010 8am to 5pm PT Register Online, Now! Nothing! This is a free event

After the live event keep fueling the fire!

Dive deeper with additional hands on labs and videos that build on the live session content, accelerating you ahead of the crowd.

–          Watch the entire event on demand!

–          Plus, new self-paced labs and walk through videos

–          On Ramp Labs (100 level)

  • Hands on labs specifically focused on helping new developers get up to speed quickly on Silverlight
  • Do you know WinForms? HTML? ASP.NET? Want to learn Silverlight? We have a lab for you!

–          Building Better Business Apps (200-300 level)

  • Hands on labs focused on taking advantage of Silverlight to build real world business applications
  • Apply Data Strategies, Patterns, Out of Browser, RIA Services, and much more using Silverlight

–          Turnabout is fair play! Watch a video of our experts doing the labs themselves.

F I R E S T A R T E R     L I V E     A G E N D A
8:00 am Silverlight Firestarter Keynote Scott Guthrie
9:00 am Masterful Data Strategies with Silverlight and WP7 Jesse Liberty
10:00 am 15 minute break
10:15 am Roll Out Your Business Apps Today with RIA Services Pete Brown
11:15 am MVVM: Why and How? Tips and Patterns using MVVM and Service Patterns John Papa
12:15 pm Lunch break
1:00 pm Silverlight Today and Tomorrow (Special Guest Panel) Panel
1:30 pm Building Real World Silverlight Apps Tim Heuer
2:30 pm 15 minute break
2:45 pm Tune Your Application: Profiling and Performance Tips Mike Cook & Jossef Goldberg
3:45 pm Killer Performance Tips for Silverlight Windows Phone 7 Jaime Rodriguez
5:00 pm After Party!

*** Sessions are subject to change

Spread the Word!

–          Blog and tweet to spread the word about the Firestarter!

–          Ask people to add the Twitter hash tag #slfs10 to their tweets

–          Use the banners and blog bling (attached)


Got questions? Ask