<Page
    x:Class="was.touchcopy.features.photos.PhotosSettingPage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:was.touchcopy.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"/>
            <CheckBox x:Name="checkboxPhotosHideICloud" Margin="0,0,0,10">
                <TextBlock x:Uid="TextBlockHideICloudOnlyPhotos"  Style="{ThemeResource BodyTextBlockStyle}" Text="XX Hide iCloud only Photos."/>
            </CheckBox>

            <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 Orientation="Horizontal" VerticalAlignment="Center" Margin="20,0,0,0">
                    <ComboBox x:Uid="ComboBoxLivePhotoSaveMode" x:Name="comboBoxLivePhotoSaveMode" Header="XX When saving Live photos" SelectedIndex="2" >
                        <ComboBoxItem x:Uid="ComboBoxItemSaveImageAndVideo" Content="XX Save Image and Video" />
                        <ComboBoxItem x:Uid="ComboBoxItemSaveImageOnly" Content="XX Save Image Only"  />
                        <ComboBoxItem x:Uid="ComboBoxItemSaveVideoOnly" Content="XX Save Video Only" />
                    </ComboBox>
                    <Border x:Name="borderLivePhotoSaveModeHelp" Style="{StaticResource HelpButtonBorderStyle}"
Tapped="_borderLivePhotoSaveModeHelp_Tapped" Margin="10,1,0,0" >
                        <FontIcon Style="{StaticResource HelpButtonFontIconStyle}"/>
                    </Border>
                </StackPanel>
                <TeachingTip x:Uid="TeachingTipLivePhotoSaveMode" x:Name="teachingTipLivePhotoSaveMode" Target="{x:Bind comboBoxLivePhotoSaveMode}" Title="XX Saving Live Photos" 
 Subtitle="XX This determines how Live photos are saved and to save them as images, videos or both."/>
            </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="Photos Export Folder Location" Margin="0,0,0,5" />
            <Grid Margin="0,0,0,20" ColumnSpacing="8">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*" MaxWidth="500"/>
                    <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>
            <TextBlock x:Uid="TextBlockDisplayOptions" Style="{ThemeResource SubtitleTextBlockStyle}" Text="XX Display Options" Margin="0,20,0,15" />
            <ToggleSwitch x:Name="toggleSwitchDisplayHiddenPhotos" x:Uid="ToggleSwitchDisplayHiddenPhotos"
                          OnContent="XX Displaying hidden photos." OffContent="XX Display hidden photos." />
        </StackPanel>
    </Grid>
</Page>
