1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- <UserControl
- x:Class="PDF_Master.Views.HomePanel.RecentFiles.DocItemControl"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PDF_Master.Views.HomePanel"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <Grid
- DataContext="{Binding}"
- DataContextChanged="Grid_DataContextChanged"
- Loaded="Grid_Loaded"
- ToolTip="{Binding FilePath}">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition Height="52" />
- </Grid.RowDefinitions>
- <Grid Margin="51,8">
- <Border
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- BorderBrush="{StaticResource color.sys.layout.divider}"
- BorderThickness="1"
- CornerRadius="{StaticResource border-radius.8}">
- <Grid>
- <Border
- Name="BorderImage"
- Background="White"
- CornerRadius="{StaticResource border-radius.8}" />
- <Image
- Name="CoverImage"
- MaxHeight="164"
- RenderOptions.BitmapScalingMode="HighQuality"
- UseLayoutRounding="True">
- <Image.OpacityMask>
- <VisualBrush Visual="{Binding ElementName=BorderImage}" />
- </Image.OpacityMask>
- </Image>
- </Grid>
- </Border>
- </Grid>
- <StackPanel
- Grid.Row="1"
- Margin="0,0,0,8"
- HorizontalAlignment="Center"
- VerticalAlignment="Center"
- Orientation="Horizontal">
- <Rectangle
- Name="RecNewMark"
- Width="4"
- Height="4"
- Margin="4,0"
- Fill="{StaticResource color.btn.cta.bg.norm}"
- RadiusX="4"
- RadiusY="4"
- Visibility="Collapsed" />
- <TextBlock
- Grid.Row="1"
- MaxWidth="210"
- MaxHeight="44"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="14"
- Text="{Binding FileName}"
- TextAlignment="Center"
- TextTrimming="CharacterEllipsis"
- TextWrapping="Wrap"
- ToolTip="{Binding FileName}" />
- </StackPanel>
- </Grid>
- </UserControl>
|