CustomProgressBarControl.xaml 1.8 KB

123456789101112131415161718192021222324252627282930
  1. <UserControl x:Class="ComPDFKit.Controls.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.Controls.Common"
  7. mc:Ignorable="d"
  8. d:DesignHeight="25" d:DesignWidth="400">
  9. <UserControl.Resources>
  10. <local:CommonResourceConverter x:Key="CommonResourceConverter"></local:CommonResourceConverter>
  11. </UserControl.Resources>
  12. <Grid x:Name="Grid" Margin="5,0,5,0">
  13. <Grid.ColumnDefinitions>
  14. <ColumnDefinition Width="Auto"></ColumnDefinition>
  15. <ColumnDefinition Width="*"></ColumnDefinition>
  16. <ColumnDefinition Width="Auto"></ColumnDefinition>
  17. </Grid.ColumnDefinitions>
  18. <TextBlock Text="{Binding Converter={StaticResource CommonResourceConverter},ConverterParameter=Property_Progress}" FontFamily="Microsoft YaHei" FontSize="14" VerticalAlignment="Center"></TextBlock>
  19. <ProgressBar Grid.Column="1" Height="{Binding ProgressBarHeight}" Foreground="#0078D7" Margin="5,0,5,0" Value="{Binding ProgressValue}" Maximum="{Binding ProgressMaxValue}"></ProgressBar>
  20. <StackPanel Grid.Column="2" Orientation="Horizontal" VerticalAlignment="Center">
  21. <TextBlock Text="{Binding ProgressValue}" FontFamily="Microsoft YaHei" FontSize="14"></TextBlock>
  22. <TextBlock Text=" / " FontFamily="Microsoft YaHei" FontSize="14"></TextBlock>
  23. <TextBlock Text="{Binding ProgressMaxValue}" FontFamily="Microsoft YaHei" FontSize="14"></TextBlock>
  24. </StackPanel>
  25. </Grid>
  26. </UserControl>