Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Page
- x:Class="Tester.MainPage"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:local="using:Tester"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d"
- Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
- <Page.Resources>
- <DataTemplate x:Key="GroupTemplate">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto"/>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <Border Background="{ThemeResource ListViewItemPlaceholderBackgroundThemeBrush}" HorizontalAlignment="Left">
- <Image Source="{Binding Property3}" Height="99" Width="99"/>
- </Border>
- <StackPanel Grid.Column="1">
- <TextBlock Text="{Binding Property1}" Style="{ThemeResource ListViewItemTextBlockStyle}"/>
- <TextBlock Text="{Binding Property2}" Style="{ThemeResource ListViewItemContentTextBlockStyle}"/>
- </StackPanel>
- </Grid>
- </DataTemplate>
- </Page.Resources>
- <GridView x:Name="ItemGridView"
- Background="{StaticResource ApplicationPageBackgroundThemeBrush}"
- DataContext="{Binding Source={StaticResource SampleDataSource}}"
- ItemTemplate="{StaticResource GroupTemplate}"
- ItemsSource="{Binding Groups}"
- ShowsScrollingPlaceholders="False"
- VerticalAlignment="Top"
- ScrollViewer.VerticalScrollBarVisibility="Auto"
- ScrollViewer.HorizontalScrollBarVisibility="Auto" SelectionMode="Multiple"/>
- </Page>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement