Skip to content

Instantly share code, notes, and snippets.

@anuith
Created June 24, 2012 04:10
Show Gist options
  • Save anuith/2981553 to your computer and use it in GitHub Desktop.
Save anuith/2981553 to your computer and use it in GitHub Desktop.
Windows Phone Hackathon : Facebook & Instagram Sample - Facebook ItemTemplate UI
<DataTemplate x:Key="FeedItemTemplate">
<Grid Background="#7F3B5998" Margin="0,0,0,30">
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Image Grid.ColumnSpan="2" Source="{Binding picture}"/>
<TextBlock TextWrapping="Wrap" Text="{Binding message}" Grid.Row="1" Grid.ColumnSpan="2"/>
<TextBlock TextWrapping="Wrap" Text="{Binding likesCount}" Grid.Row="2"/>
<TextBlock TextWrapping="Wrap" Text="{Binding commentsCount}" Grid.Row="2" Grid.Column="1"/>
</Grid>
</DataTemplate>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment