<Grid x:Class="OnlyProdGeneral_ConfigurationPageV"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5">

   <Grid.ColumnDefinitions>
      <ColumnDefinition Width="1*"/>
      <ColumnDefinition Width="1*"/>
      <ColumnDefinition Width="1*"/>
   </Grid.ColumnDefinitions>
   <Grid.RowDefinitions>
      <RowDefinition Height="1*"/>
      <RowDefinition Height="1*"/>
   </Grid.RowDefinitions>
   <StackPanel Margin="5,5,5,0">
      <GroupBox Header="{Binding CurrentLanguage_Msg}"
                Margin="0,0,0,5"
                Foreground="{StaticResource BeamWall_Corduroy}">
         <UniformGrid Rows="2" Margin="3,3,3,3">
            <ComboBox ItemsSource="{Binding LanguageList, Mode=OneWay}" Height="25"
                      DisplayMemberPath="Name" SelectedItem="{Binding SelectedLanguage}"
                      Margin="0,0,0,5" Style="{StaticResource OnlyProd_ComboBox}" />
            <TextBlock Text="{Binding LanguageAdvert_Msg}" TextWrapping="Wrap"
                       TextAlignment="Center"/>
         </UniformGrid>
      </GroupBox>
      <UniformGrid Columns="2"
                   Margin="0,0,0,5">
         <TextBlock Text="{Binding MMUnits_Msg}" VerticalAlignment="Center" Foreground="{StaticResource BeamWall_Corduroy}"/>
         <ComboBox ItemsSource="{Binding UnitMeasureList, Mode=OneWay}"
                   SelectedIndex="{Binding SelMeasureUnit}" Height="25"
                   Margin="0,5,0,0" Style="{StaticResource OnlyProd_ComboBox}" />
      </UniformGrid>
      <GroupBox Header="{Binding Nesting_Msg}"
                Margin="0,0,0,5"
                Foreground="{StaticResource BeamWall_Corduroy}">
         <StackPanel>
            <UniformGrid Columns="2"
                         Margin="0,0,0,5">
               <TextBlock Text="{Binding SectionTime_Msg}"/>
               <EgtWPFLib5:EgtTextBox Grid.Column="1"
                                      Text="{Binding SectionTime, UpdateSourceTrigger=Explicit}"/>
            </UniformGrid>
            <UniformGrid Columns="2"
                         Margin="0,0,0,5">
               <TextBlock Grid.Row="1" Text="{Binding PartTime_Msg}"/>
               <EgtWPFLib5:EgtTextBox Grid.Row="1" 
                                      Grid.Column="1"
                                      Text="{Binding PartTime, UpdateSourceTrigger=Explicit}"/>
            </UniformGrid>
         </StackPanel>
      </GroupBox>
      <UniformGrid Columns="2"
                   Margin="0,0,0,5">
         <TextBlock Text="{Binding PrintLabel_Msg}" VerticalAlignment="Center" Foreground="{StaticResource BeamWall_Corduroy}"/>
         <CheckBox IsChecked="{Binding bPrintLabel_IsChecked}"
                   Margin="0,5,0,0"/>
      </UniformGrid>
      <GroupBox Header="Backup And Restore"
                Foreground="{StaticResource BeamWall_Corduroy}">
         <Grid>
            <Grid.RowDefinitions>
               <RowDefinition Height="Auto"/>
               <RowDefinition Height="Auto"/>
               <RowDefinition Height="Auto"/>
               <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid Margin="0,2,0,5">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="Auto"/>
                  <ColumnDefinition Width="1*"/>
               </Grid.ColumnDefinitions>
               <CheckBox x:Name="ExternalBackup_CheckBox"
                         IsChecked="{Binding bExternalBackupActive}"
                         VerticalAlignment="Center"/>
               <TextBlock Grid.Column="1"
                          Text="External file path:"
                          VerticalAlignment="Center"/>
            </Grid>
            <Grid Grid.Row="1"
                  Margin="0,2,0,5">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="1*"/>
                  <ColumnDefinition Width="Auto"/>
               </Grid.ColumnDefinitions>
               <TextBox Text="{Binding ExternalBackupFolderPath}"
                        IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
                        Margin="0,0,2.5,0"/>
               <Button Grid.Column="1"
                       Content="..."
                       Foreground="{StaticResource BeamWall_White}"
                       Width="20"
                       Height="20"
                       Command="{Binding ChooseExternalBackupFolderPath_Command}"
                       IsEnabled="{Binding IsChecked, ElementName=ExternalBackup_CheckBox}"
                       Margin="2.5,0,0,0"
                       Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
            </Grid>
            <Grid Grid.Row="2">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="1*"/>
                  <ColumnDefinition Width="Auto"/>
               </Grid.ColumnDefinitions>
               <TextBlock Text="Reminder Frequency"/>
               <ComboBox Grid.Column="1"
                         ItemsSource="{Binding ReminderList}"
                         SelectedItem="{Binding SelReminder}"
                         Margin="0,0,0,5" Style="{StaticResource OnlyProd_ComboBox}" />
            </Grid>
            <StackPanel Grid.Row="3"
                        Orientation="Horizontal">
               <Button Content="Backup"
                       Command="{Binding Backup_Command}"
                       Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"
                       Margin="0,0,5,0"/>
               <Button Content="Restore"
                       Command="{Binding Restore_Command}"
                       Style="{StaticResource OnlyProdEgtWPFLib5_InputButton}"/>
            </StackPanel>
         </Grid>
      </GroupBox>
   </StackPanel>

</Grid>