12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <UserControl
- x:Class="PDF_Office.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_Office.Views.HomePanel"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- d:DesignHeight="450"
- d:DesignWidth="800"
- mc:Ignorable="d">
- <Grid
- Width="226"
- Height="248"
- DataContext="{Binding}"
- Loaded="Grid_Loaded"
- ToolTip="{Binding FilePath}">
- <Grid.RowDefinitions>
- <RowDefinition Height="auto" />
- <RowDefinition />
- </Grid.RowDefinitions>
- <Grid Height="165" Margin="51,16">
- <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"
- 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="226"
- MaxHeight="44"
- HorizontalAlignment="Center"
- VerticalAlignment="Top"
- FontSize="14"
- Text="{Binding FileName}"
- TextTrimming="CharacterEllipsis"
- TextWrapping="Wrap"
- ToolTip="{Binding FileName}" />
- </StackPanel>
- </Grid>
- </UserControl>
|