<Window x:Class="AIRS.MainWindow"
        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"
        xmlns:local1="clr-namespace:AIRS.usercontrol"
        mc:Ignorable="d"
        Title="MainWindow" Height="800" Width="1350" Background="#FF18253C" WindowStartupLocation="CenterScreen" Loaded="Window_Loaded" ResizeMode="NoResize"
            AllowDrop="True" AllowsTransparency="True" WindowStyle="None" PreviewKeyDown="Window_PreviewKeyDown" PreviewKeyUp="Window_PreviewKeyUp" 
            Drop="Window_Drop" ContentRendered="Window_ContentRendered" >
    <Grid x:Name="root">
        <!--Viewbox是为实现窗体变化时，内部控件也随之变化而加的-->
        <Viewbox Stretch="Fill">
            <Canvas Width="1350" Height="800">
                <Canvas x:Name="cantab" Width="1350" Height="40" Canvas.Top="100" Canvas.Left="0" Background="#FF434E61">
                    <Label x:Name="lblhomepage" Width="140" Height="37" Canvas.Left="15" Canvas.Top="3" Background="#FF18253C" Content="任务" Foreground="#FFF59A23" FontSize="19"
                           VerticalContentAlignment="Top" HorizontalContentAlignment="Center" PreviewMouseLeftButtonDown="lblhomepage_PreviewMouseLeftButtonDown"/>
                    <Border x:Name="border1" Width="140" Height="37" Canvas.Left="15" Canvas.Top="3" BorderThickness="2,2,2,0" BorderBrush="#FF18253C"/>
                </Canvas>
                <Grid x:Name="menugrid" Canvas.Right="30" Canvas.Top="103" Width="30" Height="30" MouseMove="MenuMouseMove" MouseLeave="MenuMouseLeave" Visibility="Hidden">
                    <Button x:Name="cmd" Width="20" Height="20" Initialized="Cmd_Initialized" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent" BorderThickness="0" Style="{StaticResource NoMouseOverButtonStyle}" >
                        <Border Width="20" Height="20" HorizontalAlignment="Center" VerticalAlignment="Center" Background="Transparent">
                            <Image x:Name="img_menu" Width="20" Height="20" Source="img/down.png" HorizontalAlignment="Center" VerticalAlignment="Center"/>
                        </Border>
                        <Button.ContextMenu >
                            <ContextMenu x:Name="menu" Width="140" Style="{StaticResource menu}" HorizontalAlignment="Center" VerticalAlignment="Center">
                                <MenuItem Header="MenuItem-0">
                                    <MenuItem Header="MenuItem-0-0"/>
                                    <MenuItem Header="MenuItem-0-1"/>
                                    <MenuItem Header="MenuItem-0-2"/>
                                </MenuItem>
                            </ContextMenu>
                        </Button.ContextMenu>
                    </Button>
                </Grid>

                <!--首页-->
                <local1:Page_FirstControl x:Name="pagefirst" Width="1350" Height="620" HorizontalAlignment="Left" Canvas.Top="140" Canvas.Left="0"></local1:Page_FirstControl>
                <local1:Page_UserControl1 Visibility="Hidden" x:Name="pageuser" Width="1350" Height="620" HorizontalAlignment="Left" Canvas.Top="140" Canvas.Left="0"></local1:Page_UserControl1>


                <!--显示图像页-->
                <ScrollViewer x:Name="svshowimg" Visibility="Hidden" Width="1350" Height="620" CanContentScroll="True" Canvas.Top="140" Canvas.Left="0" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" PreviewMouseWheel="ScrollViewer_PreviewMouseWheel" ScrollChanged="ScrollViewer_Changed" >
                    <Canvas x:Name="showpic" Width="1320" Height="620" HorizontalAlignment="Left" VerticalAlignment="Top"/>
                </ScrollViewer>

                <!--标题页-->
                <Canvas Width="1350" Height="100" Canvas.Top="0" Canvas.Left="0" Background="#FF223754" MouseMove="MainForm_MouseMove">
                    <local:TitleControl x:Name="pagetitle"/>
                </Canvas>


                <Canvas Width="1350" Height="40" Canvas.Top="760" Canvas.Left="0" Background="#FF223754">
                    <local:SubTitleControl x:Name="subtitle" />
                </Canvas>
                <!--<local:CircleProgress x:Name="circleprogress" Width="120" Height="120" Canvas.Left="615" Canvas.Top="340" Visibility="Hidden"/>-->
                <!--<Canvas x:Name="canpgb" Width="350" Height="25" Canvas.Left="500" Canvas.Top="375" Visibility="Hidden">
                    <ProgressBar x:Name="progb" Width="350" Height="25" Canvas.Left="0" Canvas.Top="0" Style="{StaticResource ProgressBarStyle}" Background="Cyan" Foreground="#FF06AB25" Value="0" Minimum="0">
                    </ProgressBar>
                </Canvas>-->
                <Canvas x:Name="CompleteTestWindow" Canvas.Top="250" Canvas.Left="445" Background="#FF223754" Visibility="Hidden">
                    <local:CompleteTestingControl x:Name="completetest" Width="460" Height="300"/>
                </Canvas>

                <!--强制关闭窗口-->
                <Canvas x:Name="ForcedCancelUC" Canvas.Top="250" Canvas.Left="445"  Background="#FF223754" Visibility="Hidden">
                    <local:ForcedCancelUserControl x:Name="forcedcancelusercontrol" Width="460" Height="300" />
                </Canvas>

                <!--进度条-->
                <local1:ProgressBarControl x:Name="pbw" Width="750" Height="150" Canvas.Left="300" Canvas.Top="350" Visibility="Hidden"></local1:ProgressBarControl>
                <local1:MinProgressbarControl1 x:Name="minpbw" Width="240" Height="40" Canvas.Top="760" Canvas.Right="550" Visibility="Hidden"></local1:MinProgressbarControl1>
                <!--检测时可以放大缩小-->
                <!--<Canvas x:Name="main_canaction" Canvas.Left="1272" Canvas.Top="3" Width="75" Height="25" MouseMove="Canvas_MouseMove" MouseLeave="canaction_MouseLeave">
                    <Canvas x:Name="minwindows" PreviewMouseLeftButtonDown="window_min_PreviewMouseLeftButtonDown">
                        <Image x:Name="imgmin" Source="img\min2.png" Canvas.Left="0" Width="25" Height="25" Canvas.Top="0"  ToolTip="最小化" />
                        <Image x:Name="imgmin1" Source="img\min1.png" Canvas.Left="0" Width="25" Height="25" Canvas.Top="0"  ToolTip="最小化" Visibility="Hidden"/>
                    </Canvas >
                    <Canvas x:Name="maxwindows" PreviewMouseLeftButtonDown="window_max_PreviewMouseLeftButtonDown">
                        <Image x:Name="imgmax" Source="img\max2.png" Canvas.Left="25" Width="25" Height="25" Canvas.Top="0" ToolTip="最大化" ></Image>
                        <Image x:Name="imgmax1" Source="img\max1.png" Canvas.Left="25" Width="25" Height="25" Canvas.Top="0" ToolTip="最大化" Visibility="Hidden"></Image>
                    </Canvas>
                    <Canvas x:Name="colosewindow" PreviewMouseLeftButtonDown="window_close_PreviewMouseLeftButtonDown">
                        <Image x:Name="imgclosed" Source="img\closed1.png" Canvas.Left="50" Height="25" Width="25" Canvas.Top="0" ToolTip="关闭"></Image>
                        <Image x:Name="imgclosed1" Source="img\closedred.png" Canvas.Left="50" Height="25" Width="25" Canvas.Top="0" ToolTip="关闭" Visibility="Hidden"></Image>
                    </Canvas>
                </Canvas>-->
            </Canvas>
        </Viewbox>
    </Grid>
</Window>
