Advertisement
Guest User

h

a guest
Jul 21st, 2014
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. <Page
  2. x:Class="Tester.MainPage"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:local="using:Tester"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. mc:Ignorable="d"
  9. Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
  10. <Page.Resources>
  11. <DataTemplate x:Key="GroupTemplate">
  12. <Grid>
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="Auto"/>
  15. <ColumnDefinition/>
  16. </Grid.ColumnDefinitions>
  17. <Border Background="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" HorizontalAlignment="Left">
  18. <Image Source="{Binding Property3}" Height="99" Width="99"/>
  19. </Border>
  20. <StackPanel Grid.Column="1">
  21. <TextBlock Text="{Binding Property1}" Style="{ThemeResource ListViewItemTextBlockStyle}"/>
  22. <TextBlock Text="{Binding Property2}" Style="{ThemeResource ListViewItemContentTextBlockStyle}"/>
  23. </StackPanel>
  24. </Grid>
  25. </DataTemplate>
  26. </Page.Resources>
  27.  
  28. <GridView x:Name="ItemGridView"
  29. Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
  30. DataContext="{Binding Source={StaticResource SampleDataSource}}"
  31. ItemTemplate="{StaticResource GroupTemplate}"
  32. ItemsSource="{Binding Groups}"
  33. ShowsScrollingPlaceholders="False"
  34. VerticalAlignment="Top"
  35. ScrollViewer.VerticalScrollBarVisibility="Auto"
  36. ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectionMode="Multiple"/>
  37.  
  38. </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement