PdfView.xaml 4.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <UserControl x:Class="ivf_tl_Manage.Views.PdfView"
  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.Views"
  7. mc:Ignorable="d"
  8. xmlns:customUserControl="clr-namespace:ivf_tl_Manage.UserControls"
  9. xmlns:customControl="clr-namespace:ivf_tl_CustomControls;assembly=ivf_tl_CustomControls_PC"
  10. FontFamily="{StaticResource sourceHan}">
  11. <Canvas Width="1830" Height="1015" x:Name="Canvas_Root">
  12. <StackPanel x:Name="_nav_StackPanel" Canvas.Left="40" Canvas.Top="37" Orientation="Horizontal" Panel.ZIndex="2000"/>
  13. <customControl:ButtonBottomImage x:Name="Export_ButtonBottomImage" Canvas.Left="43" Canvas.Top="110" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="Export_Click" Content="{DynamicResource 0062}" FontWeight="Medium" FontSize="24" Foreground="#707070" EnabledForeground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailExportIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailExportMouseIcon.png" EnabledIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailExportIcon.png"/>
  14. <customControl:ButtonBottomImage RenderOptions.BitmapScalingMode="HighQuality" Canvas.Left="38" Canvas.Top="230" IconWidth="80" IconHeight="82" IconMargin="0 -8 0 0" Click="Mark_Click" Content="{DynamicResource 0159}" FontWeight="Medium" FontSize="24" Foreground="#707070" MouseOverForeground="#4D4D4D" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailMarkButtonIcon.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/DetailMarkMouseIcon.png" />
  15. <customControl:ButtonImage Canvas.Left="1760" Canvas.Top="50" Width="34" Height="34" Click="ZoomMax_Click" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/zoomMax.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/zoomMaxMouseOver.png"/>
  16. <customControl:ButtonImage Canvas.Left="1700" Canvas.Top="50" Width="34" Height="34" Click="ZoomMin_Click" IconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/zoomMin.png" MouseOverIconSource="pack://application:,,,/ivf_tl_Manage;component/Resources/Images/zoomMinMouseOver.png"/>
  17. <Border CornerRadius="10" BorderThickness="5" BorderBrush="#4d75ac"
  18. Canvas.Left="180" Canvas.Top="100" Width="1630" Height="885" Background="#eeeeee">
  19. <Border.Effect>
  20. <DropShadowEffect BlurRadius="15" Direction="0" ShadowDepth="0" Opacity="0.5"/>
  21. </Border.Effect>
  22. <ScrollViewer x:Name="parent" Background="Transparent" Width="1620" Height="875" Panel.ZIndex="2" FocusVisualStyle="{x:Null}" Padding="0" PanningMode="Both" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" ManipulationBoundaryFeedback="ScrollViewer_ManipulationBoundaryFeedback" Style="{StaticResource DefaultScrollViewer1}">
  23. <StackPanel x:Name="image" Background="Transparent">
  24. <StackPanel.RenderTransform>
  25. <TransformGroup>
  26. <ScaleTransform/>
  27. <TranslateTransform/>
  28. </TransformGroup>
  29. </StackPanel.RenderTransform>
  30. <!--<Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  31. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  32. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  33. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>-->
  34. </StackPanel>
  35. </ScrollViewer>
  36. </Border>
  37. <!--<Border x:Name="parent" Canvas.Left="200" Canvas.Top="168" Width="862" Height="571" Background="LightGreen">
  38. <StackPanel x:Name="image" Background="Black">
  39. <StackPanel.RenderTransform>
  40. <TransformGroup>
  41. <ScaleTransform/>
  42. <TranslateTransform/>
  43. </TransformGroup>
  44. </StackPanel.RenderTransform>
  45. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  46. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  47. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  48. <Rectangle Fill="Red" Width="100" Height="300" Margin="20"/>
  49. </StackPanel>
  50. </Border>-->
  51. </Canvas>
  52. </UserControl>