<Window x:Name="mainWindow" x:Class="GetADoc.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:GetADoc"
        mc:Ignorable="d"
        Title="GetADoc" Height="291" Width="495" MinWidth="590" MinHeight="426" MaxHeight="426" MaxWidth="590"
        Loaded="Window_Loaded">
    <Grid Margin="0,0,0,4">
        <Grid.ColumnDefinitions>

            <ColumnDefinition Width="16*"/>
            <ColumnDefinition Width="43*"/>

        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>

            <RowDefinition Height="159"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="55"/>
            <RowDefinition Height="98"/>

        </Grid.RowDefinitions>
        <Label x:Name="TitleLabel" FontWeight="Bold" FontSize="18" Margin="3,-2,14,0" Grid.RowSpan="4" Grid.ColumnSpan="2" Content="AsciiDocの雛形を作成します"/>
        <Label x:Name="label1" Content="作成先のフォルダ:" HorizontalAlignment="Center" Margin="0,92,0,0" VerticalAlignment="Top" Height="26" Width="134" FontWeight="Bold" FontSize="14"/>
        <TextBox x:Name="FolderPathBox" Margin="22,118,101,0" AllowDrop="True" Drop="textBox_Drop" DragOver="textBox_PreviewDragOver" Panel.ZIndex="6" GotFocus="DeleteCompLabel" FontSize="14" Height="28" VerticalAlignment="Top" Grid.ColumnSpan="2" VerticalContentAlignment="Center">
            ＜フォルダ指定＞
        </TextBox>
        <Label x:Name="label2" Content="ドキュメント名:" HorizontalAlignment="Left" Width="98" Margin="16,8,0,7" FontWeight="Bold" FontSize="14" Grid.Row="1"/>
        <TextBox x:Name="ADocNameBox" Margin="117,0,101,0" AllowDrop="True" Panel.ZIndex="2" GotFocus="DeleteCompLabel" Height="26" VerticalAlignment="Center" VerticalContentAlignment="Center" Grid.Row="1" Grid.ColumnSpan="2"/>

        <Label x:Name="label3" Content="(.adoc)" Margin="327,12,20,13" FontWeight="Bold" FontSize="14" RenderTransformOrigin="0.5,0.5" Grid.Column="1" Grid.Row="1">
            <Label.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform AngleX="0"/>
                    <RotateTransform/>
                    <TranslateTransform X="0"/>
                </TransformGroup>
            </Label.RenderTransform>
        </Label>
        <Grid Grid.Row="2" Grid.ColumnSpan="2" Margin="33,0,1,0" Height="26" VerticalAlignment="Center">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="136"/>
                <ColumnDefinition Width="36"/>
                <ColumnDefinition Width="124"/>
                <ColumnDefinition Width="76"/>
                <ColumnDefinition Width="*"/>
            </Grid.ColumnDefinitions>
            <CheckBox x:Name="DateFolderCheckbox" Content="日付付フォルダ作成" Panel.ZIndex="2" Height="21" VerticalAlignment="Center" GotFocus="DeleteCompLabel" Click="DateFolderOptionChanged" HorizontalAlignment="Left" Width="130" FontSize="14"/>
            <DatePicker x:Name="FolderDatePicker" Grid.Column="2" VerticalAlignment="Center" Height="26" Width="118" SelectedDateFormat="Short" GotFocus="DeleteCompLabel" Panel.ZIndex="2"/>
            <TextBox x:Name="DateFolderNameBox" Grid.Column="3" Panel.ZIndex="2" GotFocus="DeleteCompLabel" Height="22" VerticalAlignment="Center" VerticalContentAlignment="Center" Grid.ColumnSpan="2" Margin="9,0,29,0"/>
        </Grid>
        <Button x:Name="button1" Content="参照" Margin="335,118,25,0" VerticalAlignment="Top" Click="button1_Click" Panel.ZIndex="2" Height="28" GotFocus="DeleteCompLabel" FontWeight="Bold" FontSize="14" RenderTransformOrigin="0.509,1.356" Grid.Column="1"/>
        <Button x:Name="button2" Content="作成" Margin="283,52,0,0" Panel.ZIndex="2" Click="button2_Click" Height="37" VerticalAlignment="Top" GotFocus="DeleteCompLabel" RenderTransformOrigin="0.726,1.024" FontSize="14" FontWeight="Bold" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Width="120"/>
        <CheckBox x:Name="ScreenCheckbox" Content="SCREEN Logo" Margin="35,44,15,0" Panel.ZIndex="2" Height="21" VerticalAlignment="Top" GotFocus="DeleteCompLabel" FontSize="14" Grid.Row="3"/>
        <CheckBox x:Name="IconCheckbox" Content="カスタムアイコン" Margin="6,44,0,0" Panel.ZIndex="2" Height="21" VerticalAlignment="Top" GotFocus="DeleteCompLabel" HorizontalAlignment="Left" Width="114" FontSize="14" Grid.Row="3" Grid.Column="1"/>
        <CheckBox x:Name="SepaDocCheckbox" Content="分割ドキュメント" Margin="35,71,10,0" Panel.ZIndex="2" GotFocus="DeleteCompLabel" FontSize="14" Grid.Row="3" Height="18" VerticalAlignment="Top"/>
        <TextBox x:Name="allBox"  TextWrapping="Wrap" Opacity="0" IsHitTestVisible="False" Cursor="Arrow" Margin="0,5,0,0" Grid.RowSpan="4" Grid.ColumnSpan="2" Text="&#x9;"/>
        <Label x:Name="CompletedLabel" Content="作成が完了しました!" HorizontalAlignment="Left" Margin="150,38,0,0" VerticalAlignment="Top" Width="133" FontWeight="Bold" Foreground="#FFD70B0B" Height="26" FontSize="14" Grid.Row="3" Grid.Column="1" Visibility="Hidden"/>
        <!--  Visibility="Hidden" -->
        <!--<CheckBox x:Name="MyPathCheckbox" Content="保存Path" Margin="8,118,290,0" Panel.ZIndex="2" Height="22" VerticalAlignment="Top" GotFocus="DeleteCompLabel" Click="MyPathClick" FontWeight="Bold" FontSize="14" Grid.Column="1"/>-->
        <Label x:Name="SavePathLabel" Content="Pathが未登録です&#xD;&#xA;これから出力するPathを登録します" HorizontalAlignment="Center" VerticalAlignment="Top" Width="184" FontWeight="Bold" Foreground="#FFD70B0B" Height="42" Margin="0,97,0,0" Grid.Column="1" Visibility="Hidden"/>
        <!--  Visibility="Hidden" -->
        <Label x:Name="SavedLabel" Content="保存Pathを更新しました" Margin="151,113,0,0" VerticalAlignment="Top" FontWeight="Bold" Foreground="#FFD70B0B" Height="26" Grid.Column="1" Visibility="Hidden"/>
        <!--  Visibility="Hidden" -->

        <!--  ここから2024追加分 -->
        <Label x:Name="label4" Content="オプション:" HorizontalAlignment="Left" Margin="18,7,0,0" VerticalAlignment="Top" Height="26" Width="92" FontWeight="Bold" FontSize="14" Grid.Row="3"/>
        <CheckBox x:Name="FreePageCheckbox" Content="フリーページ" Margin="6,71,306,0" Panel.ZIndex="2" GotFocus="DeleteCompLabel" Height="18" VerticalAlignment="Top" FontSize="14" Grid.Row="3" Grid.Column="1"/>
        <Label x:Name="label5" Content="文書フォーマット:" HorizontalAlignment="Left" VerticalAlignment="Top" Height="26" Width="109" Margin="14,54,0,0" FontWeight="Bold" FontSize="14"/>
        <ComboBox HorizontalAlignment="Left" Name="DocStileBox" Margin="142,58,0,0" VerticalAlignment="Top" Width="306" Height="22" Grid.ColumnSpan="2"/>
        <Label x:Name="label6" Content="JP　　　　　　En" Margin="178,10,0,0" VerticalAlignment="Top" Height="26" HorizontalAlignment="Left" Width="112" Grid.Column="1"/>
        <local:ToggleSwitch x:Name="ToggleButton" HorizontalAlignment="Left" Height="26" VerticalAlignment="Top" Width="60" Margin="200,12,0,0" TrackBackgroundOnColor="#FF1C87EA" TrackBackgroundOffColor="#FFECEAEA" CircleBackgroundColor="#FFBFD8FF" IsOn="{Binding Ts_Status}" Grid.Column="1"/>
        <!--<CheckBox x:Name="RightClickCheckbox" Content="右クリックショートカット追加(初回のみ)" Margin="15,94,25,0" Panel.ZIndex="2" GotFocus="DeleteCompLabel" Height="18" VerticalAlignment="Top" FontSize="14" Grid.Row="2" Grid.Column="1"/>-->
        <Button x:Name="ToggleChanger" Grid.Column="1" Content="Button" HorizontalAlignment="Left" Height="22" Margin="208,12,0,0" VerticalAlignment="Top" Width="52" Opacity="0" Click="LanguageChange"/>
        <Button x:Name="RightClickInstButton" Grid.Column="1" Content="右クリックショートカット追加" HorizontalAlignment="Left" Margin="250,5,0,0" Grid.Row="3" VerticalAlignment="Top" Width="148" FontWeight="Bold" Click="RightInstRun" Height="20"/>
        <CheckBox x:Name="Drawiobox" Content="drawioファイル" Margin="136,71,159,0" Panel.ZIndex="2" GotFocus="DeleteCompLabel" Height="18" VerticalAlignment="Top" FontSize="14" Grid.Row="3" Grid.Column="1"/>
        <Button x:Name="HelpPageButton" Grid.Column="1" Content="ヘルプ" HorizontalAlignment="Left" Margin="334,15,0,0" VerticalAlignment="Top" Width="64" FontWeight="Bold" Click="helpButton_Click" Height="20"/>

    </Grid>
</Window>