<EgtWPFLib5:EgtCustomWindow x:Class="MainWindowV"
                            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                            xmlns:EgtBEAMWALL="clr-namespace:EgtBEAMWALL.Supervisor"
                            xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
                            DataContext="{StaticResource MainWindowVM}"
                            Style="{DynamicResource {x:Type EgtWPFLib5:EgtCustomWindow}}"
                            Title="{Binding Title}" Icon="/Resources/EgtBEAMWALL.ico"
                            MinHeight="600" MinWidth="800"
                            ShowInTaskbar="True"
                            AboutBoxCommand="{Binding AboutBox_Command}"
                            CloseCommand="{Binding CloseApplication_Command,Mode=OneWay,UpdateSourceTrigger=PropertyChanged}">
   <EgtWPFLib5:EgtCustomWindow.TitlePanel>
      <EgtBEAMWALL:MainMenuV DataContext="{StaticResource MainMenuVM}"/>
   </EgtWPFLib5:EgtCustomWindow.TitlePanel>

   <!--Pannello principale -->
   <DockPanel>

      <!--StatusBar -->
      <EgtBEAMWALL:StatusBarV DataContext="{StaticResource StatusBarVM}"
                             DockPanel.Dock="Bottom"/>
      <!--Progetto corrente-->
      <TabControl SelectedIndex="{Binding nSelTabPage}"
                  Padding="0"
                  Margin="0,-4,0,0">
         <TabControl.ItemContainerStyle>
            <Style TargetType="{x:Type TabItem}">
               <Setter Property="Visibility" Value="Collapsed"/>
            </Style>
         </TabControl.ItemContainerStyle>
         <TabItem>
            <EgtBEAMWALL:ProjectV DataContext="{StaticResource ProjectVM}"/>
         </TabItem>
         <TabItem>
            <EgtBEAMWALL:InputsPageV DataContext="{StaticResource InputsPageVM}"/>
         </TabItem>
         <TabItem>
            <EgtBEAMWALL:OutputsPageV DataContext="{StaticResource OutputsPageVM}"/>
         </TabItem>
         <TabItem>
            <EgtBEAMWALL:ConfigurationPageV DataContext="{StaticResource ConfigurationPageVM}"/>
         </TabItem>
      </TabControl>

   </DockPanel>

</EgtWPFLib5:EgtCustomWindow>
