Full_Screen_View.xaml 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <Window x:Class="AIRS.Full_Screen_View"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:AIRS"
  7. mc:Ignorable="d"
  8. Title="Full_Screen_View" Background="#FF18253C" Height="800" Width="1350" WindowStyle="None" Loaded="Window_Loaded" WindowState="Maximized" MouseMove="MouseMove_Border" PreviewKeyDown="MainWindows_Keydown">
  9. <Grid Name="grid">
  10. <Grid x:Name="grdRelative"
  11. HorizontalAlignment="Center"
  12. VerticalAlignment="Center"
  13. Width="{Binding ActualWidth, ElementName=grdMap}"
  14. Height="{Binding ActualHeight, ElementName=grdMap}" Margin="0,20,0,60"></Grid>
  15. <Grid x:Name="grdMap"
  16. MouseWheel="grdMap_MouseWheel"
  17. MouseLeave="grdMap_MouseLeave"
  18. MouseDown="grdMap_MouseDown"
  19. MouseUp="grdMap_MouseUp"
  20. MouseMove="grdMap_MouseMove"
  21. RenderTransformOrigin="0,0" Margin="0,20,0,60">
  22. <Grid.RenderTransform>
  23. <TransformGroup>
  24. <ScaleTransform ScaleX="{Binding Value, ElementName=slider}"
  25. ScaleY="{Binding Value, ElementName=slider}" />
  26. <SkewTransform />
  27. <RotateTransform />
  28. <TranslateTransform />
  29. </TransformGroup>
  30. </Grid.RenderTransform>
  31. <Canvas x:Name="can_tar" Margin="0" Width="1350" Height="800" MouseDown="can_tar_MouseDown" MouseMove="can_tar_MouseMove" MouseUp="can_tar_MouseUp" MouseLeave="can_tar_MouseLeave" >
  32. <Image x:Name="target" Canvas.Top="0" Canvas.Left="0" Width="1350" Height="800">
  33. <Image.ContextMenu>
  34. <ContextMenu Name="Menu_Positionimage">
  35. <MenuItem Name="M_Positionimage" Header="定位原图(L)" Click="Menu_Click_Positionimage"/>
  36. </ContextMenu>
  37. </Image.ContextMenu>
  38. </Image>
  39. <Path x:Name="field" Fill="#40FF0000" Visibility="Hidden">
  40. <Path.Data>
  41. <GeometryGroup>
  42. <!--Center为圆心的坐标,RadiusX、RadiusY分别为X、Y两轴的半径-->
  43. <RectangleGeometry x:Name="rect" Rect="0,0,1350,800"></RectangleGeometry>
  44. <EllipseGeometry x:Name="circle" RadiusX="300" RadiusY="300" Center="675,400"/>
  45. </GeometryGroup>
  46. </Path.Data>
  47. </Path>
  48. <Path x:Name="fieldr" Fill="#40FF0000" Visibility="Hidden">
  49. <Path.Data>
  50. <GeometryGroup>
  51. <!--Center为圆心的坐标,RadiusX、RadiusY分别为X、Y两轴的半径-->
  52. <RectangleGeometry x:Name="rectr" Rect="0,0,1350,800"></RectangleGeometry>
  53. <RectangleGeometry x:Name="rectrr" Rect="375,150,600,500"></RectangleGeometry>
  54. </GeometryGroup>
  55. </Path.Data>
  56. </Path>
  57. </Canvas>
  58. </Grid>
  59. <Slider x:Name="slider"
  60. Visibility="Hidden"
  61. HorizontalAlignment="Left"
  62. VerticalAlignment="Center"
  63. Orientation="Vertical"
  64. Width="20"
  65. Height="200"
  66. Maximum="10"
  67. Minimum="1" />
  68. <TextBlock x:Name="show" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Background="White" Height="60" FontSize="34" TextAlignment="Center" Text="样品编号:1# 评级结果 A50%+B48%+C2% 缩放比例:120%" ></TextBlock>
  69. <Grid x:Name="img_l_f" Cursor="Hand" HorizontalAlignment="Left" Width="85" MouseMove="Last_Img_MouseMove" MouseLeave="Last_Img_MouseLeave" >
  70. <Ellipse x:Name="lasttimgellipse" Fill="#FF1085FA" Height="79" VerticalAlignment="Center" Width="79" Canvas.Left="0" Margin="4,0,0,0" />
  71. <Border x:Name="lastimgboder" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Grid.RowSpan="3" Grid.ColumnSpan="1" Visibility="Hidden" Cursor="Hand" BorderBrush="Chocolate" BorderThickness="1,1,1,1" CornerRadius="39.5,39.5,39.5,39.5" Width="79" Height="79" Margin="4,0,0,0"></Border>
  72. <Image x:Name="img_l" Source="img/u7.png"></Image>
  73. <Rectangle >
  74. <Rectangle.Fill>
  75. <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
  76. <GradientStop Color="#00000000" Offset="1"/>
  77. <GradientStop Color="White" Offset="-0.6" />
  78. </LinearGradientBrush>
  79. </Rectangle.Fill>
  80. </Rectangle>
  81. </Grid>
  82. <Grid x:Name="img_r_f" MouseMove="Next_Img_MouseMove" MouseLeave="Next_Img_MouseLeave" HorizontalAlignment="Right" Width="85" Cursor="Hand" >
  83. <Ellipse x:Name="nextimgellipse" Fill="#FF1085FA" Height="79" VerticalAlignment="Center" Width="79" Canvas.Left="0" Margin="0,0,4,0" Opacity="1" />
  84. <Border x:Name="nextimgboder" HorizontalAlignment="Center" Grid.Row="0" Grid.Column="2" Visibility="Hidden" Grid.RowSpan="3" Grid.ColumnSpan="1" Cursor="Hand" BorderBrush="Chocolate" BorderThickness="1,1,1,1" CornerRadius="39.5,39.5,39.5,39.5" Width="79" Height="79" Margin="0,0,4,0"></Border>
  85. <Image x:Name="img_r" Source="img/u9.png" ></Image>
  86. <Rectangle >
  87. <Rectangle.Fill>
  88. <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
  89. <GradientStop Color="#00000000" Offset="0" />
  90. <GradientStop Color="White" Offset="1.6" />
  91. </LinearGradientBrush>
  92. </Rectangle.Fill>
  93. </Rectangle>
  94. </Grid>
  95. <Button x:Name="btn_close" HorizontalAlignment="Right" VerticalAlignment="Top" BorderThickness="0" Content="关闭" Foreground="White" Background="#FF8B929D" Opacity="0.5" FontSize="22" FontWeight="Black" Click="button_close" Width="115" Cursor="Hand" MouseEnter="btn_MouseEnter" MouseLeave="btn_MouseLeave"></Button>
  96. <CheckBox x:Name="CheckBoxProcessOrInitial" Foreground="White" Margin="0,50" Width="115" Click="CheckBox_Click"
  97. HorizontalAlignment="Right" Content="显示原图" VerticalAlignment="Top" VerticalContentAlignment="Center"
  98. FontFamily="Georgia" FontSize="22" FontWeight="Bold" />
  99. </Grid>
  100. </Window>