<?xml version="1.0" encoding="utf-8"?>
<Page
    x:Class="was.droidtransfer.features.photos.PhotosSettingsPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:was.droidtransfer.features.photos"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid>
        <Grid.Resources>
            <Style x:Key="HelpButtonBorderStyle" TargetType="Border">
                <Setter Property="CornerRadius" Value="12"/>
                <Setter Property="BorderThickness" Value="2"/>
                <Setter Property="BorderBrush" Value="{StaticResource SystemAccentColor}"/>
                <Setter Property="Padding" Value="3"/>
                <Setter Property="VerticalAlignment" Value="Top"/>
            </Style>
            <Style x:Key="HelpButtonFontIconStyle" TargetType="FontIcon">
                <Setter Property="FontSize" Value="14"/>
                <Setter Property="FontWeight" Value="SemiBold"/>
                <Setter Property="Foreground" Value="{ThemeResource SystemAccentColor}"/>
                <Setter Property="Glyph" Value="&#xE897;"/>
            </Style>
        </Grid.Resources>
        <StackPanel Padding="20,10" >
            <TextBlock x:Uid="TextBlockPhotosSettings" Style="{ThemeResource TitleTextBlockStyle}" Margin="0,10,0,20" Text="XX Photos Settings"/>
            <TextBlock x:Uid="TextBlockSaveToPCOptions" Style="{ThemeResource SubtitleTextBlockStyle}" Text="XX Save to PC Options" Margin="0,0,0,15" />

            <StackPanel Orientation="Horizontal" Margin="0,0,0,20">
                <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,20,0">
                    <ComboBox x:Uid="ComboBoxHeicSaveMode" x:Name="comboBoxHeicSaveMode" Header="XX When saving HEIC images" SelectedIndex="0" >
                        <ComboBoxItem x:Uid="ComboBoxItemCopyJustHeic" Content="XX Save HEIC"  />
                        <ComboBoxItem x:Uid="ComboBoxItemConvertHeicToJpg" Content="XX Convert to JPG" />
                        <ComboBoxItem x:Uid="ComboBoxItemCopyHeicAndConvert" Content="XX Save and Convert" />
                    </ComboBox>
                    <Border x:Name="borderHeicSaveModeHelp" Style="{StaticResource HelpButtonBorderStyle}" Tapped="_borderHeicSaveModeHelp_Tapped" Margin="10,1,0,0" >
                        <FontIcon Style="{StaticResource HelpButtonFontIconStyle}"/>
                    </Border>
                </StackPanel>
                <TeachingTip x:Uid="TeachingTipHeicSaveMode" x:Name="teachingTipHeicSaveMode" Target="{x:Bind comboBoxHeicSaveMode}" Title="XX Saving HEIC Images" 
             Subtitle="XX This determines how HEIC images are copied and whether to perform any conversion to to JPG."/>
            </StackPanel>
            <CheckBox x:Name="checkBoxCreateAlbumFolders">
                <TextBlock x:Uid="TextBlockCreateAlbumFolders" Style="{ThemeResource BodyTextBlockStyle}" Text="XX Create album folders when copying photos to PC."/>
            </CheckBox>
            <TextBlock x:Uid="TextBlockExportOptions" Style="{ThemeResource SubtitleTextBlockStyle}" Text="XX Export Options" Margin="0,20,0,15"/>
            <TextBlock x:Uid="TextBlockExportDirectoryPath" Text="XX Photos Export Folder Location" Margin="0,0,0,5" />
            <Grid Margin="0,0,0,20" ColumnSpacing="8">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" MaxWidth="420"/>
                    <ColumnDefinition Width="auto"/>
                    <ColumnDefinition Width="auto"/>
                </Grid.ColumnDefinitions>
                <TextBox x:Name="textBoxExportDirectoryPath" />
                <Button x:Name="buttonExportDirectoryPathBrowse" x:Uid="ButtonExportDirectoryPathBrowse" Grid.Column="1" Content="XX Browse" Style="{ThemeResource AccentButtonStyle}" Click="_buttonExportDirectoryPathBrowse_Click" />
            </Grid>

            <StackPanel Orientation="Horizontal" VerticalAlignment="Center" Margin="0,0,0,20">
                <ComboBox x:Uid="ComboBoxGroupType" x:Name="comboBoxGroupType" Header="XX Group photos by">
                    <ComboBoxItem x:Uid="ComboBoxItemNone" Content="XX No Grouping"  />
                    <ComboBoxItem x:Uid="ComboBoxItemYear" Content="XX Year" />
                    <ComboBoxItem x:Uid="ComboBoxItemMonth" Content="XX Month" />
                    <ComboBoxItem x:Uid="ComboBoxItemDay" Content="XX Day" />
                </ComboBox>
                <Border x:Name="borderGroupTypeHelp" Style="{StaticResource HelpButtonBorderStyle}"
                        Tapped="_borderGroupTypeHelp_Tapped" Margin="20,1,0,0" >
                    <FontIcon Style="{StaticResource HelpButtonFontIconStyle}"/>
                </Border>
            </StackPanel>
            <TeachingTip x:Uid="TeachingTipGroupType" x:Name="teachingTipGroupType" Target="{x:Bind comboBoxGroupType}" Title="XX Photos Grouping" 
                         Subtitle="XX This determines how your photos are grouped when using the Export New Photos feature."/>

            <CheckBox x:Name="checkBoxAutoSearchNewPhotos">
                <TextBlock x:Uid="TextBlockAutoSearchNewPhotos" Style="{ThemeResource BodyTextBlockStyle}" Text="XX Automatically check for new photos that have not been exported."/>
            </CheckBox>

            <CheckBox x:Name="checkBoxExportIncludeVideo">
                <TextBlock x:Uid="TextBlockExportIncludeVideo" Style="{ThemeResource BodyTextBlockStyle}" Text="XX Include videos in export."/>
            </CheckBox>
        </StackPanel>
    </Grid>
</Page>
