Welcome to MSDN Blogs Sign in | Join | Help

Silverlight for the MySpace Developer Platform

Now you can build Silverlight applications for the MySpace Developer Platform!  I have been working with MySpace for months on this initiative and now we have some exciting results:

  1. MySpace has just announced support for Silverlight on MySpace’s Open Platform.  Take a look at their new page about Silverlight support.
  2. On Thursday, April 2, MySpace and Microsoft will jointly release a kit on the CodePlex Open Source site (with the MS-PL License) that will make it easy for developers using Visual Studio and designers using Expression Blend to create Silverlight applications on MySpace’s OpenSocial-based developer platform.
  3. Along with Max Newbould, Development Manager for OpenSocial on MySpace, I will be giving a presentation at the Web 2.0 Expo in San Francisco on Thursday, April 2 at 1:30 PM on this Silverlight Kit for MySpace.  The kit should be available on CodePlex at the conclusion of the session.

As the MySpace Developer Platform grows and evolves, we want to keep Silverlight as a relevant option for designers and developers who want to create engaging, interactive application for MySpace users.  Working with developers at MySpace we’ve created a kit that would let designers with Expression Blend use data binding in Silverlight to connect to the data provided by the MySpace Developer Platform.  We’ve even added design-time and offline sample data to the kit to aid in development.

In this example below, I’m data binding the MySpace page owner’s friends to a ListBox and using a data template for each item returned:

image

And the XAML for this simple application is this (no code has been added to the application):

  • Key elements to look for are the <MyOpenSpace:MySpacePeopleRequest in the UserControl.Resources, the ListBox.ItemsSource, and the PeopleTemplate DataTemplate.
<UserControl x:Class="Test_Silverlight_Kit_for_MySpace.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:MyOpenSpace="clr-namespace:MyOpenSpace;assembly=MySpaceSilverlightKit"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    Width="400" Height="300">
    <UserControl.Resources>
        <MyOpenSpace:MySpacePeopleRequest x:Key="OwnerFriends" 
            IdSpec="opensocial.IdSpec.PersonId.OWNER" />
        <DataTemplate x:Key="PersonTemplate">
            <Border ToolTipService.ToolTip="{Binding Path=Status}" Height="Auto" Width="Auto" 
Padding="4,4,4,4" CornerRadius="4,4,4,4" BorderBrush="#FF000000" BorderThickness="0,0,2,2"> <Border.Background> <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0"> <GradientStop Color="#FFFFFFFF" Offset="0"/> <GradientStop Color="#FF007EE8" Offset="1"/> </LinearGradientBrush> </Border.Background> <Grid Height="Auto" Width="Auto"> <Grid.RowDefinitions> <RowDefinition Height="Auto"/> <RowDefinition Height="Auto"/> </Grid.RowDefinitions> <Image Source="{Binding Mode=OneWay, Path=ThumbnailImage}" Width="100" Height="100" HorizontalAlignment="Stretch" Margin="2.5,2.5,2.5,2.5"/> <HyperlinkButton TargetName="_blank" NavigateUri="{Binding Path=ProfileUrl}" Grid.Row="1" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" Padding="0,0,0,0"> <TextBlock Foreground="#FFFFFFFF" Text="{Binding Path=Nickname}" TextWrapping="Wrap" FontFamily="Trebuchet MS" FontSize="10" Height="Auto" Width="Auto" TextAlignment="Center"/> </HyperlinkButton> </Grid> </Border> </DataTemplate> </UserControl.Resources> <Grid x:Name="LayoutRoot" Background="White"> <ListBox ItemTemplate="{StaticResource PersonTemplate}" ItemsSource="{Binding People, Source={StaticResource OwnerFriends}}"/> </Grid> </UserControl>

I can’t wait to see what cool applications people build with this kit.  Watch (or subscribe) this blog for more news.

Published Monday, March 30, 2009 9:37 AM by Michael S. Scherotter

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# infoblog &raquo; Silverlight for the MySpace Developer Platform

# Silverlight applications NOW available on MySpace…

If you’re developing applications for Social Networking sites such as MySpace, you’re in for a real good

Monday, March 30, 2009 3:28 PM by Veni, Vidi, Velcro...

# Telecinco, RAI, TF1, NBC, CBS, Youtube… ¡MySpace!

Otro más con soporte para Silverlight. En este caso lo que han hecho es habilitar el uso de Silverlight

Monday, March 30, 2009 7:04 PM by De los medios y de lo digital

# MySpace + Silverlight – here’s how

Announced today! Read more on the MySpace Developer page , read even more from our evangelist who led

Tuesday, March 31, 2009 12:19 AM by Contagious Curiosity

# Silverlight fortsätter sin framfart, nu på MySpace

Jag har under veckan tittat på en del av materialet från Mix09 och helt enkelt inte kunnat hålla mig

Tuesday, March 31, 2009 1:28 AM by Johan Lindfors

# MySpace…..intégration de Silverlight pour développer des applications riches!

A partir de maintenant il sera possible de développer des applications riches pour les utilisateurs de

Tuesday, March 31, 2009 5:49 AM by Vincent Belllet's Blog [MSFT] - FR

# MySpace i Silverlight

Jak donosi Michael Scherotter : MySpace -&#160; portal, który od dawna jest blisko naszych technologii,

Tuesday, March 31, 2009 5:50 AM by SocialITy

# Silverlight and MySpace

Big news from Michael Scherotter that you can now build Silverlight applications for the MySpace Developer

Tuesday, March 31, 2009 6:16 AM by Marc: My Words

# [PL] MySilverli.. znaczy MySpace

No właśnie. Od razu źródła do informacji, która już jest w prasie: http://in.sys-con.com/node/898377

Tuesday, March 31, 2009 7:16 AM by Only Human | Devoted to technology v.2.0

# MySpace supports Silverlight

For all of you Silverlight developers there are some good news: now you can actually build your Silverlight

Tuesday, March 31, 2009 7:42 AM by Zunanji viri

# MySpace…..with Silverlight to design rich applications!

For MySpace users, it’s a great day to be able to develop and use our Silverlight technology It will

Tuesday, March 31, 2009 8:02 AM by Vincent Belllet's Blog [MSFT] - EN

# MySpace announces support for Microsoft Platforms, Silverlight Toolkit Available this week - Spread the Word!!

Tuesday, March 31, 2009 12:15 PM by Imaya's Blog

# Silverlight for MySpace Developer Platform

Exciting announcement from Michael’s blog about MySpace and Silverlight. “Now you can build Silverlight

Tuesday, March 31, 2009 1:37 PM by Springboard from mortarboard to onboard

# MySpace Announces Support for Silverlight, Windows Mobile

MySpace has announced support for Windows Mobile and Silverlight. The MySpace application for Windows

Tuesday, March 31, 2009 1:41 PM by US ISV Developer Evangelism Team

# Silverlight + MySpace = WayCool!

Today MySpace announced support for Silverlight on their Open Platform. Yes, you can start leveraging

Tuesday, March 31, 2009 6:58 PM by Silverlight SDK

# Aplicatii Silverlight pe MySpace

MySpace a anunțat suport pentru Silverlight și implicit .NET pentru platforma OpenSocial. Vom lansa cât

Wednesday, April 01, 2009 2:27 AM by Weblogul lui Zoli

# Silverlight和MySpace的神奇合并

.csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New",

Wednesday, April 01, 2009 10:10 PM by Felix Wang | Evangelizing the Next Web

# Construir aplicaciones de Silverlight en MySpace

Hola a todos… Con el objetivo de seguir acercando al mundo de las redes sociales con las nuevas tendencias

Thursday, April 02, 2009 5:01 PM by The Wave

# Silverlight en MySpace

Recientemente MySpace anunció soporte para aplicaciones Silverlight en su MySpace Open Platform y en

Thursday, April 02, 2009 5:44 PM by Blog de RicardoJ

# re: Silverlight for the MySpace Developer Platform

"we want to keep Silverlight as a relevant option"

It is not relevant to me as a developer as my OS is not supported. Until Silverlight is cross compatible I won't be supporting it on Myspace.

Monday, April 06, 2009 6:22 PM by Zoasterboy

# re: Silverlight for the MySpace Developer Platform

Zoasterboy,

What OS is that?

For Microsoft, cross-platform compatability is one of the important aspects of Silverlight.  That's why we're supporting Windows and Mac, working with Novell to support Linux, and working with Nokia to support Mobile - along with our own Windows Mobile.

Michael

Monday, April 06, 2009 6:33 PM by Michael S. Scherotter

# Silverlight y MySpace

MySpace ha anunciado soporte para aplicaciones Silverlight en su MySpace Open Platform , y ya se puede

Friday, April 17, 2009 9:51 AM by Silverlight al descubierto

# Silverlight for the MySpace Developer Platform

Thank you for submitting this cool story - Trackback from DotNetShoutout

Thursday, April 30, 2009 10:58 PM by DotNetShoutout

Leave a Comment

(required) 
required 
(required) 

  
Enter Code Here: Required
 
Page view tracker