evanjs

XAML - ListBox with 2 images on top and label on bottom

Aug 4th, 2014
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.68 KB | None | 0 0
  1. <DataTemplate>
  2.     <Border BorderBrush="Gray" BorderThickness="3" CornerRadius="10">
  3.         <Grid>
  4.             <Grid.RowDefinitions>
  5.                 <RowDefinition/>
  6.                 <RowDefinition/>
  7.             </Grid.RowDefinitions>
  8.                 <Grid>
  9.                     <Grid.ColumnDefinitions>
  10.                         <ColumnDefinition/>
  11.                         <ColumnDefinition/>
  12.                     </Grid.ColumnDefinitions>
  13.                     <Image Source="{Binding ContentImages.Cover}" Margin="10" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Left"  Height="140" Width="100" />
  14.                     <Image Source="{Binding ContentImages.Sample}" Margin="10" Grid.Column="1" Grid.Row="0" Height="140" Width="100" />
  15.                 </Grid>
  16.             <Label Content="{Binding ContentName}" Grid.Row="2" />
  17.         </Grid>
  18.     </Border>
  19. </DataTemplate>
Advertisement
Add Comment
Please, Sign In to add comment