DocItemControl.xaml 1.2 KB

123456789101112131415161718192021
  1. <UserControl x:Class="PDF_Office.Views.HomePanel.RecentFiles.DocItemControl"
  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:PDF_Office.Views.HomePanel"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800">
  9. <Grid Height="272" Width="230" Loaded="Grid_Loaded" DataContext="{Binding}" ToolTip="{Binding FilePath}">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="auto"/>
  12. <RowDefinition />
  13. </Grid.RowDefinitions>
  14. <Image Name="CoverImage" Width="136" Height="176" Margin="4" RenderOptions.BitmapScalingMode="HighQuality" UseLayoutRounding="True"/>
  15. <TextBlock Grid.Row="1"
  16. FontSize="14" MaxWidth="136" TextTrimming="CharacterEllipsis"
  17. ToolTip="{Binding FileName}" Text="{Binding FileName}"
  18. VerticalAlignment="Center" HorizontalAlignment="Center"/>
  19. </Grid>
  20. </UserControl>