CustomProgressBarControl.xaml 1.5 KB

1234567891011121314151617181920212223242526
  1. <UserControl x:Class="Compdfkit_Tools.Common.CustomProgressBarControl"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:Compdfkit_Tools.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="25" d:DesignWidth="400">
  9. <Grid x:Name="Grid">
  10. <Grid.ColumnDefinitions>
  11. <ColumnDefinition Width="Auto"></ColumnDefinition>
  12. <ColumnDefinition Width="*"></ColumnDefinition>
  13. <ColumnDefinition Width="Auto"></ColumnDefinition>
  14. </Grid.ColumnDefinitions>
  15. <TextBlock Text="Progress" FontFamily="Microsoft YaHei" FontSize="14" VerticalAlignment="Center"></TextBlock>
  16. <ProgressBar Grid.Column="1" Height="5" Foreground="#0078D7" Margin="5,0,5,0" Value="{Binding ProgressValue}" Maximum="{Binding ProgressMaxValue}"></ProgressBar>
  17. <StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
  18. <TextBlock Text="{Binding ProgressValue}" FontFamily="Microsoft YaHei" FontSize="14"></TextBlock>
  19. <TextBlock Text=" / " FontFamily="Microsoft YaHei" FontSize="14"></TextBlock>
  20. <TextBlock Text="{Binding ProgressMaxValue}" FontFamily="Microsoft YaHei" FontSize="14"></TextBlock>
  21. </StackPanel>
  22. </Grid>
  23. </UserControl>