<UserControl
    x:Class="ControlExplorer.OneDriveExplorer"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:ControlExplorer"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:c1="using:C1.Xaml"
    mc:Ignorable="d"
    d:DesignHeight="300"
    d:DesignWidth="400">
    <UserControl.Resources>
        <DataTemplate x:Key="StoreFrontTileTemplate">
            <TextBlock Text="{Binding Name}" Style="{ThemeResource ListViewItemTextBlockStyle}"/>
        </DataTemplate>
        <Style x:Key="StoreFrontTileStyle" TargetType="GridViewItem">
            <Setter Property="FontFamily" Value="Segoe UI"/>
            <!--<Setter Property="Height" Value="80"/>
            <Setter Property="Width" Value="292"/>-->
            <Setter Property="Padding" Value="0"/>
            <Setter Property="Margin" Value="0,0,8,8"/>
            <Setter Property="HorizontalContentAlignment" Value="Left"/>
            <Setter Property="VerticalContentAlignment" Value="Top"/>
            <Setter Property="BorderThickness" Value="0"/>
            <Setter Property="TabNavigation" Value="Local"/>
        </Style>
        <ItemsPanelTemplate x:Key="StoreFrontGridItemsPanelTemplate">
            <ItemsStackPanel Orientation="Vertical"/>
        </ItemsPanelTemplate>
    </UserControl.Resources>
    <Grid Background="{ThemeResource FlyoutBackgroundThemeBrush}">
        <Grid x:Name="selectFolder" Visibility="Visible">
            <Grid.RowDefinitions>
                <RowDefinition Height="Auto"/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <StackPanel Margin="20 32 20 0">
                <StackPanel Orientation="Horizontal">
                    <TextBlock Text="ONEDRIVE" Margin="0" Style="{ThemeResource TitleTextBlockStyle}"/>
                    <TextBlock Text="folders" Margin="8 0" Style="{ThemeResource BaseTextBlockStyle}"/>
                </StackPanel>
                <TextBlock Text="Select a folder to upload the generated file" Style="{ThemeResource BaseTextBlockStyle}"/>
            </StackPanel>
            <GridView x:Name="foldersList" Grid.Row="1" Margin="20 10 20 0" ItemTemplate="{StaticResource StoreFrontTileTemplate}" ItemContainerStyle="{StaticResource StoreFrontTileStyle}" ItemsPanel="{StaticResource StoreFrontGridItemsPanelTemplate}" ShowsScrollingPlaceholders="False" ContainerContentChanging="foldersList_ContainerContentChanging" SelectionChanged="foldersList_SelectionChanged"/>
        </Grid>
    </Grid>
</UserControl>
