<DockPanel x:Class="ConfigurationPageV"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:EgtBEAMWALLCORE="clr-namespace:EgtBEAMWALL.Core;assembly=EgtBEAMWALL.Core"
           xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.ViewerOptimizer"
           DataContext="{StaticResource ConfigurationPageVM}">

   <Grid>
      <Grid.ColumnDefinitions>
         <ColumnDefinition Width="1*"/>
         <ColumnDefinition Width="10*"/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
         <RowDefinition Height="1*"/>
         <RowDefinition Height="6*"/>
      </Grid.RowDefinitions>
      <TabControl Grid.Row="0" Grid.Column="0" Grid.RowSpan="2" Grid.ColumnSpan="2"
                  SelectedIndex="{Binding SelConfigSubPage}">
         <TabItem>
            <TabItem.Header>
               <StackPanel Orientation="Horizontal">
                  <TextBlock Text="{Binding General_Msg}"
                             Style="{StaticResource OptionTextBlock}"/>
                  <Button Command="{Binding SaveCommand}"
                          ToolTip="{Binding SaveToolTip}"
                          Visibility="{Binding General_Visibility}"
                          Style="{StaticResource OptionPanel_Button}">
                     <Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
                  </Button>
               </StackPanel>
            </TabItem.Header>
            <TabItem.Content>
               <EgtBEAMWALLCORE:General_ConfigurationPageV/>
            </TabItem.Content>
         </TabItem>
         <TabItem>
            <TabItem.Header>
               <StackPanel Orientation="Horizontal">
                  <TextBlock Text="{Binding ParameterQ_Msg}"
                             Style="{StaticResource OptionTextBlock}"/>
                  <Button Command="{Binding SaveCommand}"
                          ToolTip="{Binding SaveToolTip}"
                          Visibility="{Binding ParameterQ_Visibility}"
                          Style="{StaticResource OptionPanel_Button}">
                     <Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
                  </Button>
               </StackPanel>
            </TabItem.Header>
            <TabItem.Content>
               <EgtBEAMWALLCORE:QParameter_ConfigurationPageV/>
            </TabItem.Content>
         </TabItem>
         <TabItem>
            <TabItem.Header>
               <TextBlock Text="{Binding Machine_Msg}"
                          Style="{StaticResource Machine_TextBlock}"/>
            </TabItem.Header>
            <TabItem.Content>
               <EgtBEAMWALLCORE:Machine_ConfigurationPageV/>
            </TabItem.Content>
         </TabItem>
         <TabItem>
            <TabItem.Header>
               <StackPanel Orientation="Horizontal">
                  <TextBlock Text="{Binding PDFEditor_Msg}"
                             Style="{StaticResource OptionTextBlock}"/>
                  <Button Command="{Binding SaveCommand}"
                          ToolTip="{Binding SaveToolTip}"
                          Visibility="{Binding PDFEditor_Visibility}"
                          Style="{StaticResource OptionPanel_Button}">
                     <Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
                  </Button>
               </StackPanel>
            </TabItem.Header>

            <TabItem.Content>
               <EgtBEAMWALL:PDFEditorV/>
            </TabItem.Content>
         </TabItem>

      </TabControl>
   </Grid>
</DockPanel>
