<UserControl x:Class="SelParkIndWD"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:EgtWPFLib="clr-namespace:EgtWPFLib;assembly=EgtWPFLib"
             FontFamily="{DynamicResource OmagCut_Font}"
             Background="Transparent">

   <Border Style="{DynamicResource OmagCut_Border}">
      <Grid>
         <Grid.ColumnDefinitions>
            <ColumnDefinition Width="0.1*"/>
            <ColumnDefinition Width="10*"/>
            <ColumnDefinition Width="0.1*"/>
         </Grid.ColumnDefinitions>
         <Grid.RowDefinitions>
            <RowDefinition Height="0.0*"/>
            <RowDefinition Height="0.1*"/>
            <RowDefinition Height="10*"/>
            <RowDefinition Height="0.1*"/>
            <RowDefinition Height="0.0*"/>
         </Grid.RowDefinitions>

         <TextBlock Name="FilePathTxBl" Grid.Column="1" Grid.Row="1" Style="{DynamicResource OmagCut_CenteredLowerCaseCharacterTextBlock}" 
                    Visibility="Collapsed"/>
         <!--TextAlignment="Center"
               FontSize="20"
               VerticalAlignment="Center"-->
         <ListBox Name="ParkIndListBox" Grid.Column="1" Grid.Row="2"
                  ItemsSource="{Binding ItemList}" ScrollViewer.CanContentScroll="False" ScrollViewer.HorizontalScrollBarVisibility="Hidden">
            <ListBox.ItemTemplate>
               <DataTemplate>
                  <StackPanel Orientation="Vertical" >
                     <UniformGrid Columns="2"  Visibility="{Binding TitleVisibility}">
                        <StackPanel Orientation="Horizontal">
                           <Image Source="{Binding ImgTab}" Height="20" Stretch="Uniform"/>
                           <TextBlock Text="{Binding CountInTab}" Height="20" Width="30">
                              <TextBlock.Style>
                                 <Style TargetType="TextBlock" BasedOn="{StaticResource OmagCut_ListBoxTextBlock}">
                                    <Style.Triggers>
                                       <DataTrigger Binding="{Binding IsStatusON}" Value="False">
                                          <Setter Property="FontStyle" Value="Oblique"/>
                                          <Setter Property="Foreground" Value="{StaticResource OmagCut_White}"/>
                                       </DataTrigger>
                                       <DataTrigger Binding="{Binding IsStatusON}" Value="True">
                                          <Setter Property="Foreground" Value="black"/>
                                       </DataTrigger>
                                    </Style.Triggers>
                                 </Style>
                              </TextBlock.Style>
                           </TextBlock>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                           <Image Source="{Binding ImgPark}" Height="20" Stretch="Uniform"/>
                           <TextBlock Text="{Binding CountInPark}" Height="20" Width="30">
                              <TextBlock.Style>
                                 <Style TargetType="TextBlock" BasedOn="{StaticResource OmagCut_ListBoxTextBlock}">
                                    <Style.Triggers>
                                       <DataTrigger Binding="{Binding IsStatusON}" Value="False">
                                          <Setter Property="FontStyle" Value="Oblique"/>
                                          <Setter Property="Foreground" Value="{StaticResource OmagCut_White}"/>
                                       </DataTrigger>
                                       <DataTrigger Binding="{Binding IsStatusON}" Value="True">
                                          <Setter Property="Foreground" Value="black"/>
                                       </DataTrigger>
                                    </Style.Triggers>
                                 </Style>
                              </TextBlock.Style>
                           </TextBlock>
                        </StackPanel>
                     </UniformGrid>
                     <Image Source="{Binding Img}" Width="120" Stretch="Uniform" Visibility="{Binding MyVisibilityImg}"/>
                     <Viewbox Name="ViewBoxPark" Visibility="{Binding MyVisibilitySvg}">
                        <ContentPresenter Content="{Binding LocalMyCanvas.CurrCanvas}"/>
                     </Viewbox>
                  </StackPanel>
               </DataTemplate>
            </ListBox.ItemTemplate>
         </ListBox>

         <Grid Grid.Column="1" Grid.Row="4" Visibility="Collapsed">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="0.5*"/>
               <ColumnDefinition Width="1*"/>
               <ColumnDefinition Width="0.5*"/>
            </Grid.ColumnDefinitions>

            <Button Name="OkBtn" Grid.Column="1" Style="{DynamicResource OmagCut_GradientBlueIconButton}" >
               <Image Source="{DynamicResource VImg}" Style="{DynamicResource OmagCut_ButtonIcon}"/>
            </Button>
         </Grid>

      </Grid>

   </Border>
</UserControl>
