Project Description
Silverlight 2 library to facilitate development of applications on the MySpace Developer Platform’s OpenSocial 0.8 API.

CLR Objects

These are objects that are meant to be used as resources in a Silverlight application like this:
<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">
    <UserControl.Resources>
        <MyOpenSpace:MySpacePeopleRequest x:Key="OwnerFriends" 
            IdSpec="opensocial.IdSpec.PersonId.OWNER" />
    </UserControl.Resources>
</UserControl>

Value Converters

These are objects that are meant to be used as resources in a Silverlight application to assist with converting values during data binding like this:
<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">
    <UserControl.Resources>
        <MyOpenSpace:MySpacePersonRequest x:Key="Owner" 
             IdSpec="opensocial.IdSpec.PersonId.OWNER" 
             RequestFields="opensocial.Person.Field.BOOKS"/>
        <MyOpenSpace:HtmlToEnumerableConverter x:Key="BooksConverter"/>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot">
        <ListBox 
          DataContext="{StaticResource Owner}"
          ItemsSource="{Binding People.Books, Converter={StaticResource BooksConverter} }"/>
    </Grid>
</UserControl>

Last edited Apr 29, 2009 at 8:05 PM by mscherotter, version 23