MyOpenSpace.MySpacePersonRequest

Get information about the viewer or the owner

Properties

  • RequestFields Gets or sets the fields to request. Use the OpenSocial field names listed in MyOpenSpace.Person separated by commas for this value.
  • IdSpec Gets or sets the owner or viewer to request information about:
    • "opensocial.IdSpec.PersonId.VIEWER"
    • "opensocial.IdSpec.PersonId.OWNER"
  • Person Gets the person information as a MyOpenSpace.Person

Sample

This is from the Me Sample in the Kit
<UserControl x:Class="Me.Page"
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
  xmlns:MyOpenSpace="clr-namespace:MyOpenSpace;assembly=MySpaceSilverlightKit"             
  xmlns:Synergist="clr-namespace:Synergist;assembly=MySpaceSilverlightKit"             
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <UserControl.Resources>
        <MyOpenSpace:MySpacePersonRequest x:Key="Owner" 
            RequestFields="opensocial.Person.Fields.DATE_OF_BIRTH"
            IdSpec="opensocial.IdSpec.PersonId.OWNER"/>
        <Synergist:DateTimeConverter x:Key="DateTimeConverter"/>
    </UserControl.Resources>
    <Grid x:Name="LayoutRoot" Background="SeaShell">
        <StackPanel Orientation="Horizontal">
            <TextBlock Text="My birthday is "/>
            <TextBlock DataContext="{StaticResource Owner}"
                  Text="{Binding Person.DateOfBirth, Converter={StaticResource DateTimeConverter}, ConverterParameter=D}"/>
        </StackPanel>
    </Grid>
</UserControl>

Last edited Apr 1, 2009 at 4:43 AM by mscherotter, version 4

Comments

No comments yet.