<UserControl x:Class="OpenPageUC"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"          
             mc:Ignorable="d" 
             d:DesignHeight="853.3" d:DesignWidth="1280" Initialized="OpenPage_Initialized" Loaded="OpenPage_Loaded" Unloaded="OpenPage_Unloaded">

   <!-- Definizione della OpenPage -->
   <Border>
      <Grid Name="OpenPageGrid" >
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="3*"/>
            <ColumnDefinition Width="12*"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="0.5*"/>
            <RowDefinition Height="8*"/>
            <RowDefinition Height="1*"/>
         </Grid.RowDefinitions>

         <!-- Definizione della Grid Superiore -->
         <Grid Name="UpperButtonsGrid" Grid.Column="1" Grid.RowSpan="2">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="5*"/>
               <ColumnDefinition Width="7*"/>
            </Grid.ColumnDefinitions>
         </Grid>

         <Grid Name="SceneHostGrid" Grid.Row="2" Grid.Column="1">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="6*"/>
               <ColumnDefinition Width="1.2*"/>
            </Grid.ColumnDefinitions>
         </Grid>

         <TextBlock Name="FilePathTxBl" Grid.Row="0" 
                    Style="{DynamicResource OmagCut_LowerCaseCharacterTextBlock}"/>

         <Grid Grid.Row="1" Grid.RowSpan="2">
            <Grid.RowDefinitions>
               <RowDefinition Height="6.5*"/>
               <RowDefinition Height="0.65*"/>
            </Grid.RowDefinitions>
            <ListBox Name="FileListBox"  
                     ItemTemplate="{DynamicResource DataTemplateItem}"
                     ItemsSource="{Binding ItemList}"
                     ItemContainerStyle="{DynamicResource ItemList}"/>

            <Grid Grid.Row="1" Margin="0,0,8,0">
               <Grid.ColumnDefinitions>
                  <ColumnDefinition Width="4*"/>
                  <ColumnDefinition Width="1*"/>
               </Grid.ColumnDefinitions>
               <EgtWPFLib:EgtTextBox Name="FindTxBx" Grid.Column="0"
                                     Style="{DynamicResource OmagCut_LeftKeyboardTextBoxNoBorder}"/>
               <Button Name="ClearFindBtn" Grid.Column="1" Style="{DynamicResource OmagCut_GradientBlueIconButton}" Margin="0,6,2,6">
                  <Image Source="{DynamicResource XImg}" Style="{DynamicResource OmagCut_ButtonIcon}" Width="30" />
               </Button>
            </Grid>

         </Grid>

         <Border Name="MessageBrd" Grid.Row="3" BorderThickness="0,1,0,0" BorderBrush="Gray">
            <TextBlock Name="MessageTxBx"  TextAlignment="Center"
                       Style="{DynamicResource OmagCut_LowerCaseCharacterTextBlock}"/>
         </Border>

         <!-- Definizione della Grid Inferiore per i Button V e X -->
         <Grid Name="BottomButtonsGrid" Grid.Column="1" Grid.Row="3">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="6*"/>
               <ColumnDefinition Width="3*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="1*"/>
            </Grid.ColumnDefinitions>

            <Button Name="BarCodeBtn" Grid.Column="0" Style="{DynamicResource OmagCut_YellowGradientYellowIconButton}">
               <Image Source="{DynamicResource BarCodeImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>

            <Button Name="OkBtn" Grid.Column="3" Style="{DynamicResource OmagCut_GradientBlueIconButton}">
               <Image Source="{DynamicResource VImg}" Width="65" Height="65" HorizontalAlignment="Center"
                      VerticalAlignment="Center" />
            </Button>
            <Button Name="ExitBtn" Grid.Column="4" Style="{DynamicResource OmagCut_GradientBlueIconButton}">
               <Image Source="{DynamicResource XImg}" Width="65" Height="65" HorizontalAlignment="Center"
                      VerticalAlignment="Center" />
            </Button>

         </Grid>

      </Grid>

   </Border>

</UserControl>
