<Window 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:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
        x:Class="MainWindow"
        x:Name="MainWindow"
        TextElement.Foreground="{DynamicResource MaterialDesignBody}"
        TextElement.FontWeight="Regular"
        TextElement.FontSize="13"
        TextOptions.TextFormattingMode="Ideal"
        TextOptions.TextRenderingMode="Auto"
        Background="{DynamicResource MaterialDesignPaper}"
        FontFamily="{DynamicResource MaterialDesignFont}"
        mc:Ignorable="d"
        Title="Dokumentáció készítő"
        MinWidth="630"
        MinHeight="250"
        WindowStyle="None"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight"
        WindowStartupLocation="CenterScreen" Height="329">


    <!--  ********  THEME  ********  -->
    <Window.Resources>
        <materialDesign:BundledTheme BaseTheme="Light"
                                     PrimaryColor="Teal"
                                     SecondaryColor="Teal" />
    </Window.Resources>

    <!--  ********  ROOT LAYOUT (DockPanel) ********  -->
    <DockPanel Margin="0,0,0,-18">

        <!--  ===   TITLE BAR (VS Code-like)   ===  -->
        <Grid DockPanel.Dock="Top" Height="30"
              Background="{DynamicResource PrimaryHueMidBrush}"
              MouseDown="Label_MouseDown">
            <Grid.ColumnDefinitions>
                <ColumnDefinition/>
                <ColumnDefinition Width="Auto"/>
            </Grid.ColumnDefinitions>

            <TextBlock Text="Dokumentáció készítő"
                       VerticalAlignment="Center"
                       Margin="10,0,0,0"
                       Foreground="White"
                       FontWeight="SemiBold"/>

            <!--  Window-control buttons  -->
            <StackPanel Grid.Column="1" Orientation="Horizontal">
                <Button x:Name="CloseButton"
                        Click="ExitButton_Click"
                        Style="{StaticResource MaterialDesignFlatButton}"
                        FontFamily="Segoe MDL2 Assets"
                        Content="&#xE8BB;"
                        Width="45" Height="30"
                        Foreground="DarkRed"/>
            </StackPanel>
        </Grid>

        <!--  ===   MAIN CONTENT AREA   ===  -->
        <Grid x:Name="MainGrid"
              Margin="10" Height="261">

            <Grid Width="600" HorizontalAlignment="Center" Margin="0,0,0,-81">

                <!--  Dokumentáció készítése gomb  -->
                <Button x:Name="CreateDocument"
                        Content="Dokumentáció készítése"
                        HorizontalAlignment="Left"
                        Margin="434,206,0,0"
                        VerticalAlignment="Top"
                        Width="156" />

                <!--  listbox placeholder  -->
                <ListBox x:Name="ListBox1"
         Margin="400,10,10,0"
         Background="{x:Null}"
         BorderThickness="2"
         BorderBrush="#FFECE0E0"
         Height="191"
         VerticalAlignment="Top"
         FontSize="14">
                    <ListBox.ItemContainerStyle>
                        <Style TargetType="ListBoxItem" BasedOn="{StaticResource {x:Type ListBoxItem}}">
                            <Setter Property="Height" Value="64"/>
                            <Setter Property="MinHeight" Value="64"/>
                            <Setter Property="Padding" Value="10,0"/>
                            <Setter Property="VerticalContentAlignment" Value="Center"/>
                        </Style>
                    </ListBox.ItemContainerStyle>
                </ListBox>



                <!--  BAL OLDALI CSOPORTOK  -->
                <StackPanel Margin="10,10,0,0" HorizontalAlignment="Left" Width="180">
                    <GroupBox Header="Dokumentáció típusa" Padding="5">
                        <StackPanel>
                            <CheckBox x:Name="PDFCheckBox" Content="PDF"/>
                            <CheckBox x:Name="DXFCheckBox" Content="DXF"/>
                            <CheckBox x:Name="XLSCheckbox" Content="XLS"/>
                            <CheckBox x:Name="TIFFCheckbox" Content="TIFF"/>
                        </StackPanel>
                    </GroupBox>
                </StackPanel>

                <StackPanel Margin="0,122,410,140" HorizontalAlignment="Right" Width="180" Visibility="Collapsed">
                    <GroupBox Header="Dokumentáció " Padding="5" Height="73">
                        <StackPanel>
                            <RadioButton x:Name="NamingSyntaxStefani" Content="Robotizálunk"/>
                            <RadioButton x:Name="NamingSyntaxAudi" Content="Audi"/>
                        </StackPanel>
                    </GroupBox>
                </StackPanel>


                <StackPanel Margin="10,126,0,71" HorizontalAlignment="Left" Width="250" Visibility="Collapsed">
                    <GroupBox Header="Egyéb" Padding="5">
                        <StackPanel>
                            <CheckBox x:Name="AutomaticFolderSelect" Content="Automatikus mappa választás"/>
                            <CheckBox x:Name="PDFOsszeCheckBox" Content="PDF összefűzése"/>
                        </StackPanel>
                    </GroupBox>
                </StackPanel>

                <!--  Rajz használat módja  -->
                <GroupBox Header="Rajz használat módja"
          Margin="195,10,0,235"
          Width="200"
          HorizontalAlignment="Left"
          Padding="5">
                    <StackPanel>
                        <RadioButton x:Name="MaterialRadioButton3"
                     Content="Aktív rajz használata"
                     IsChecked="True"/>
                        <RadioButton x:Name="KulonAloRajzok"
                     Content="Különálló rajzok használata"/>
                    </StackPanel>
                </GroupBox>


                <!--  Böngészés gomb  -->
                <Button x:Name="Files_Browse"
                        Content="Böngészés"
                        HorizontalAlignment="Left"
                        Margin="195,112,0,0"
                        VerticalAlignment="Top"
                        Width="200" Height="30"
                        FontSize="10"/>

                <!--  Progress bar  -->
                <Grid HorizontalAlignment="Left" Height="32" Margin="8,206,0,0" VerticalAlignment="Top" Width="420">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="241*"/>
                        <ColumnDefinition Width="68*"/>
                        <ColumnDefinition Width="111"/>
                    </Grid.ColumnDefinitions>
                    <ProgressBar x:Name="Progressbar" Height="32" Width="419" Grid.ColumnSpan="3" Margin="0,0,1,0"/>
                    <Label x:Name="ProgressText" Height="22" Margin="50,0,72,0"
                           VerticalAlignment="Center" Grid.ColumnSpan="3"/>
                </Grid>

                <!--  DWG jelölő négyzet  -->
                <CheckBox x:Name="DWGCheckBox" Content="DWG"
                          HorizontalAlignment="Left"
                          Margin="100,56,0,0"
                          VerticalAlignment="Top"/>
            </Grid>
        </Grid>
    </DockPanel>
</Window>