PicSourceUserControl.xaml 2.1 KB

123456789101112131415161718192021222324252627
  1. <UserControl x:Class="ivf_tl_Manage.UserControls.PicSourceUserControl"
  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:ivf_tl_Manage.UserControls"
  7. mc:Ignorable="d"
  8. FontFamily="{StaticResource sourceHan}"
  9. Width="210" Height="242"
  10. x:Name="_PicSourceUserControl">
  11. <Border x:Name="templateRoot" SnapsToDevicePixels="True" Width="210" Height="242" Background="#DDDDDD" CornerRadius="14">
  12. <Canvas Background="Transparent" Width="210" Height="242" SnapsToDevicePixels="True" Focusable="False">
  13. <Image Canvas.Left="15" Canvas.Top="15" Width="180" Height="180" SnapsToDevicePixels="True" Focusable="False"
  14. Source="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/PicLoadIcon.png"/>
  15. <TextBlock Width="210" TextAlignment="Center" Canvas.Top="125" FontWeight="Medium" Foreground="#9B9B9B" FontSize="18" Text="{DynamicResource 0497}"/>
  16. <Image Canvas.Left="15" Canvas.Top="15" Source="{Binding ElementName=_PicSourceUserControl,Path=ImageSourceUrl}" Width="180" Height="180" SnapsToDevicePixels="True" Focusable="False">
  17. <Image.Clip>
  18. <RectangleGeometry Rect="0,0,180,180" RadiusX="14" RadiusY="14"/>
  19. </Image.Clip>
  20. </Image>
  21. <Border Width="210" Canvas.Top="195" Height="47" Background="Transparent" SnapsToDevicePixels="True" Focusable="False">
  22. <TextBlock FontWeight="Medium" Foreground="#4D4D4D" FontSize="18" Background="Transparent" HorizontalAlignment="Center" VerticalAlignment="Center" SnapsToDevicePixels="True" Focusable="False"
  23. Text="{Binding ElementName=_PicSourceUserControl,Path=ImageInfoString}"/>
  24. </Border>
  25. </Canvas>
  26. </Border>
  27. </UserControl>