ProgressBarWindow.xaml 2.2 KB

1234567891011121314151617181920212223242526272829
  1. <Window x:Class="AIRS.ProgressBarWindow"
  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="ProgressBarWindow" Height="150" Width="750" WindowStartupLocation="CenterScreen" WindowStyle="None">
  9. <Grid Margin="0">
  10. <!--进度条-->
  11. <Canvas Background="#FF24272C" Visibility="Visible" Margin="0" Width="744" Height="144">
  12. <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>
  13. <ProgressBar x:Name="progbar" Height="25" Width="550" Maximum="100" Minimum="0" Value="0" Canvas.Left="97" Canvas.Top="55" Style="{StaticResource ProgressBarStyle}"></ProgressBar>
  14. <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>
  15. <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" Click="btncancle_Click">
  16. <Button.Template >
  17. <ControlTemplate TargetType="{x:Type Button}" >
  18. <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1" CornerRadius="7,7,7,7">
  19. <Border.Background>
  20. <Brush>#FF169BD5</Brush>
  21. </Border.Background>
  22. <ContentPresenter Content="{TemplateBinding Content}" HorizontalAlignment="Center" VerticalAlignment="Center" />
  23. </Border>
  24. </ControlTemplate>
  25. </Button.Template>
  26. </Button>
  27. </Canvas>
  28. </Grid>
  29. </Window>