Skip to content

Instantly share code, notes, and snippets.

@renestein
Created December 6, 2010 09:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renestein/730040 to your computer and use it in GitHub Desktop.
Save renestein/730040 to your computer and use it in GitHub Desktop.
<ListBox Name="lstPosts" Margin="0,10,0,0" ItemsSource="{Binding SelectedSite.Posts}" Grid.Row="2" SelectedItem="{Binding SelectedPost, Mode=TwoWay}">
<ListBox.ItemTemplate>
<DataTemplate>
<Border BorderBrush="{StaticResource PhoneForegroundBrush}" CornerRadius="20" BorderThickness="0 0 0 2" Margin="0 2" >
<TextBlock Text="{Binding Title}" TextWrapping="Wrap" Style="{StaticResource PhoneTextLargeStyle}" Width="{Binding ElementName=lstPosts, Path=ActualWidth}"/>
</Border>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</Grid>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment