Share via


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="https://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:MyOpenSpace="clr-namespace:MyOpenSpace;assembly=MySpaceSilverlightKit"
    xmlns:x="https://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.

Comments

  • Anonymous
    March 30, 2009
    PingBack from http://blog.a-foton.ru/index.php/2009/03/30/silverlight-for-the-myspace-developer-platform/

  • Anonymous
    March 30, 2009
    If you’re developing applications for Social Networking sites such as MySpace, you’re in for a real good

  • Anonymous
    March 30, 2009
    Otro más con soporte para Silverlight. En este caso lo que han hecho es habilitar el uso de Silverlight

  • Anonymous
    March 30, 2009
    Announced today! Read more on the MySpace Developer page , read even more from our evangelist who led

  • Anonymous
    March 30, 2009
    Jag har under veckan tittat på en del av materialet från Mix09 och helt enkelt inte kunnat hålla mig

  • Anonymous
    March 30, 2009
    A partir de maintenant il sera possible de développer des applications riches pour les utilisateurs de

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

  • Anonymous
    March 30, 2009
    Big news from Michael Scherotter that you can now build Silverlight applications for the MySpace Developer

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

  • Anonymous
    March 30, 2009
    For all of you Silverlight developers there are some good news: now you can actually build your Silverlight

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

  • Anonymous
    March 31, 2009
    A Great Leap for Silverlight !! http://blogs.msdn.com/synergist/archive/2009/03/30/silverlight-for-the-myspace-developer-platform.asp

  • Anonymous
    March 31, 2009
    Exciting announcement from Michael’s blog about MySpace and Silverlight. “Now you can build Silverlight

  • Anonymous
    March 31, 2009
    MySpace has announced support for Windows Mobile and Silverlight. The MySpace application for Windows

  • Anonymous
    March 31, 2009
    Today MySpace announced support for Silverlight on their Open Platform. Yes, you can start leveraging

  • Anonymous
    March 31, 2009
    MySpace a anunțat suport pentru Silverlight și implicit .NET pentru platforma OpenSocial. Vom lansa cât

  • Anonymous
    April 01, 2009
    .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New",

  • Anonymous
    April 02, 2009
    Hola a todos… Con el objetivo de seguir acercando al mundo de las redes sociales con las nuevas tendencias

  • Anonymous
    April 02, 2009
    Recientemente MySpace anunció soporte para aplicaciones Silverlight en su MySpace Open Platform y en

  • Anonymous
    April 06, 2009
    "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.

  • Anonymous
    April 06, 2009
    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

  • Anonymous
    April 17, 2009
    MySpace ha anunciado soporte para aplicaciones Silverlight en su MySpace Open Platform , y ya se puede

  • Anonymous
    April 30, 2009
    Thank you for submitting this cool story - Trackback from DotNetShoutout

  • Anonymous
    September 23, 2009
    Hi, I would like to know what are the procedure(steps) to develop a SilverLight application (may be using MySpace) to run on Windows Mobile device? What are the development tools that need to be installed and how to develop a sample? I need your answers please.