FileVertical.xaml 1.4 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="ConfigFileManager.Controls.FileSelector.FileVertical"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:ConfigFileManager.Controls.FileSelector"
  7. mc:Ignorable="d"
  8. x:Name="This"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="auto"/>
  13. <RowDefinition Height="2"/>
  14. <RowDefinition/>
  15. </Grid.RowDefinitions>
  16. <Grid>
  17. <Image Source="{Binding ElementName=This, Path=ImageSource}" Width="40" Height="40" Margin="8,4"/>
  18. <TextBlock Panel.ZIndex="1" Foreground="{StaticResource TextColor}" Margin="0,0,0,6"
  19. VerticalAlignment="Bottom" HorizontalAlignment="Center" Text="{Binding ElementName=This, Path=FileType}" TextWrapping="Wrap" MaxWidth="64"/>
  20. </Grid>
  21. <TextBlock Grid.Row="2" VerticalAlignment="Top" HorizontalAlignment="Center" Block.TextAlignment="Center"
  22. Text="{Binding ElementName=This, Path=FileName}" TextWrapping="Wrap" MaxWidth="80" />
  23. </Grid>
  24. </UserControl>