<UserControl x:Class="ConfigFileManager.Controls.FileSelector.FileVertical"
             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:local="clr-namespace:ConfigFileManager.Controls.FileSelector"
             mc:Ignorable="d" 
             x:Name="This"
             d:DesignHeight="450" d:DesignWidth="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="2"/>
            <RowDefinition/>
        </Grid.RowDefinitions>
        <Grid>
            <Image Source="{Binding ElementName=This, Path=ImageSource}" Width="40" Height="40" Margin="8,4"/>
            <TextBlock Panel.ZIndex="1" Foreground="{StaticResource TextColor}" Margin="0,0,0,6" 
                           VerticalAlignment="Bottom" HorizontalAlignment="Center" Text="{Binding ElementName=This, Path=FileType}" TextWrapping="Wrap" MaxWidth="64"/>
        </Grid>

        <TextBlock Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Center" Block.TextAlignment="Center" 
                       Text="{Binding ElementName=This, Path=FileName}" TextWrapping="Wrap" MaxWidth="80" />
    </Grid>
</UserControl>
