<Window x:Class="AIRS.Full_Screen_View"
        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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:AIRS"
        mc:Ignorable="d"
        Title="Full_Screen_View" Background="#FF18253C"  Height="800" Width="1350"  WindowStyle="None"  Loaded="Window_Loaded" WindowState="Maximized" MouseMove="MouseMove_Border" PreviewKeyDown="MainWindows_Keydown">
    <Grid Name="grid">

        <Grid x:Name="grdRelative"  
              HorizontalAlignment="Center"  
              VerticalAlignment="Center"  
              Width="{Binding ActualWidth, ElementName=grdMap}"  
              Height="{Binding ActualHeight, ElementName=grdMap}" Margin="0,20,0,60"></Grid>
        <Grid  x:Name="grdMap"  
              MouseWheel="grdMap_MouseWheel"  
              MouseLeave="grdMap_MouseLeave"  
              MouseDown="grdMap_MouseDown"  
              MouseUp="grdMap_MouseUp"  
              MouseMove="grdMap_MouseMove"  

              RenderTransformOrigin="0,0" Margin="0,20,0,60">
            <Grid.RenderTransform>
                <TransformGroup>
                    <ScaleTransform ScaleX="{Binding Value, ElementName=slider}"  
                                    ScaleY="{Binding Value, ElementName=slider}" />
                    <SkewTransform />
                    <RotateTransform />
                    <TranslateTransform />
                </TransformGroup>
            </Grid.RenderTransform>
            <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" >
                <Image x:Name="target" Canvas.Top="0" Canvas.Left="0" Width="1350" Height="800">
                    <Image.ContextMenu>
                        <ContextMenu Name="Menu_Positionimage">
                            <MenuItem Name="M_Positionimage" Header="定位原图(L)" Click="Menu_Click_Positionimage"/>
                        </ContextMenu>
                    </Image.ContextMenu>
                </Image>
                <Path x:Name="field" Fill="#40FF0000" Visibility="Hidden">
                    <Path.Data>
                        <GeometryGroup>
                            <!--Center为圆心的坐标，RadiusX、RadiusY分别为X、Y两轴的半径-->
                            <RectangleGeometry x:Name="rect" Rect="0,0,1350,800"></RectangleGeometry>
                            <EllipseGeometry x:Name="circle" RadiusX="300" RadiusY="300" Center="675,400"/>
                        </GeometryGroup>
                    </Path.Data>
                </Path>
                <Path x:Name="fieldr" Fill="#40FF0000" Visibility="Hidden">
                    <Path.Data>
                        <GeometryGroup>
                            <!--Center为圆心的坐标，RadiusX、RadiusY分别为X、Y两轴的半径-->
                            <RectangleGeometry x:Name="rectr" Rect="0,0,1350,800"></RectangleGeometry>
                            <RectangleGeometry x:Name="rectrr" Rect="375,150,600,500"></RectangleGeometry>
                        </GeometryGroup>
                    </Path.Data>
                </Path>
            </Canvas>
        </Grid>
        <Slider x:Name="slider"  
                Visibility="Hidden"
                HorizontalAlignment="Left"  
                VerticalAlignment="Center"  
                Orientation="Vertical"  
                Width="20"  
                Height="200"  
                Maximum="10"  
                Minimum="1" />




        <TextBlock x:Name="show" HorizontalAlignment="Stretch" VerticalAlignment="Bottom" Background="White"  Height="60" FontSize="34" TextAlignment="Center" Text="样品编号：1# 评级结果 A50%+B48%+C2%  缩放比例：120%" ></TextBlock>

        <Grid x:Name="img_l_f" Cursor="Hand" HorizontalAlignment="Left"  Width="85" MouseMove="Last_Img_MouseMove" MouseLeave="Last_Img_MouseLeave" >
            <Ellipse x:Name="lasttimgellipse" Fill="#FF1085FA" Height="79" VerticalAlignment="Center" Width="79" Canvas.Left="0" Margin="4,0,0,0" />
            <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>
            <Image x:Name="img_l" Source="img/u7.png"></Image>
            <Rectangle >
                <Rectangle.Fill>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">

                        <GradientStop Color="#00000000" Offset="1"/>
                        <GradientStop Color="White" Offset="-0.6" />
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>
        </Grid>


        <Grid x:Name="img_r_f" MouseMove="Next_Img_MouseMove" MouseLeave="Next_Img_MouseLeave" HorizontalAlignment="Right" Width="85"  Cursor="Hand" >
            <Ellipse x:Name="nextimgellipse" Fill="#FF1085FA" Height="79" VerticalAlignment="Center" Width="79" Canvas.Left="0" Margin="0,0,4,0" Opacity="1" />
            <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>
            <Image x:Name="img_r"  Source="img/u9.png" ></Image>
            <Rectangle >
                <Rectangle.Fill>
                    <LinearGradientBrush StartPoint="0,0.5" EndPoint="1,0.5">
                        <GradientStop Color="#00000000" Offset="0" />
                        <GradientStop Color="White" Offset="1.6" />
                    </LinearGradientBrush>
                </Rectangle.Fill>
            </Rectangle>

        </Grid>
        <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>
        <CheckBox x:Name="CheckBoxProcessOrInitial" Foreground="White"  Margin="0,50"  Width="115" Click="CheckBox_Click"
   HorizontalAlignment="Right" Content="显示原图"  VerticalAlignment="Top" VerticalContentAlignment="Center" 
   FontFamily="Georgia" FontSize="22" FontWeight="Bold"  />

    </Grid>
</Window>
