<UserControl x:Class="AIRS.usercontrol.ProgressBarControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:AIRS.usercontrol"
             mc:Ignorable="d" 
             d:DesignHeight="150" d:DesignWidth="750">
    <Grid>
        <!--进度条-->
        <Canvas Background="#FF24272C" Visibility="Visible" Margin="0" Width="744" Height="144">
            <Label x:Name="progbar_num" Foreground="White" Width="744" Height="30" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" Canvas.Left="0" Canvas.Top="16" Content="100%" FontSize="18"></Label>
            <Label x:Name="show_num" Foreground="White" Width="120" Height="30" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" Canvas.Right="90" Canvas.Top="19" Content="(1000/1000)" FontSize="16"></Label>
            <Canvas x:Name="canvas_min" Canvas.Right="4" Canvas.Top="3"  MouseMove="Canvas_MouseMove" MouseLeave="Canvas_MouseLeave">
                <Image x:Name="min_img1" Source="..\\..\\img\u110.png" Width="20" Height="20"  Canvas.Right="4" Canvas.Top="3" ToolTip="最小化"></Image>
                <Image x:Name="min_img2" Source="..//img\min1.png"  Width="20" Height="20" Canvas.Right="4" Canvas.Top="3" ToolTip="最小化" Visibility="Hidden"/>
            </Canvas>
            <ProgressBar x:Name="progbar" Height="25" Width="550" Maximum="100" Minimum="0" Value="0" Canvas.Left="97" Canvas.Top="55" Style="{StaticResource ProgressBarStyle}"></ProgressBar>
            <Label x:Name="progbar_msg" Foreground="White" Width="744" Height="34" VerticalContentAlignment="Top" HorizontalContentAlignment="Center" Canvas.Left="0" Canvas.Top="94" Content="正在进行AI检测，请稍候..." FontSize="20"></Label>
            <Button x:Name="btncancle" Content="取消" HorizontalAlignment="Left" VerticalAlignment="Top" Width="110" Height="35" FontSize="24" Foreground="White" Background="#FF169BD5" Canvas.Left="623" Canvas.Top="98">
                <Button.Template >
                    <ControlTemplate TargetType="{x:Type Button}" >
                        <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
                            <Border.Background>
                                <Brush>#FF169BD5</Brush>
                            </Border.Background>
                            <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
                        </Border>
                    </ControlTemplate>
                </Button.Template>
            </Button>
        </Canvas>
    </Grid>
</UserControl>
