<DockPanel x:Class="ConfigurationPageV"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Core">

   <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>
               <EgtBEAMWALL: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>
               <EgtBEAMWALL:QParameter_ConfigurationPageV/>
            </TabItem.Content>
         </TabItem>
         <TabItem >
            <TabItem.Header>
               <StackPanel Orientation="Horizontal">
                  <TextBlock Text="{Binding Machine_Msg}"
                             Style="{StaticResource OptionTextBlock}"/>
                  <Button Command="{Binding SaveCommand}"
                          ToolTip="{Binding SaveToolTip}"
                          Visibility="{Binding Machine_Visibility}"
                          Style="{StaticResource OptionPanel_Button}">
                     <Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
                  </Button>
               </StackPanel>
            </TabItem.Header>

            <TabItem.Content>
               <EgtBEAMWALL:Machine_ConfigurationPageV/>
            </TabItem.Content>
         </TabItem>
      </TabControl>

      <!--<Button Command="{Binding SaveCommand}"
                ToolTip="{Binding SaveToolTip}"
                Grid.Row="1" 
                Grid.Column="1"
                Style="{StaticResource OptionPanel_Button}">
         <Image Source="/Resources/ProjectManager/Save.png" Stretch="Uniform"/>
      </Button>-->

   </Grid>
</DockPanel>
