OCRDownloadProgress.xaml 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <UserControl x:Class="PDF_Master.Views.Dialog.ConverterDialogs.OCRDownloadProgress"
  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. mc:Ignorable="d"
  7. Loaded="Window_Loaded"
  8. Background="Transparent" Width="374"
  9. Height="120" >
  10. <Grid>
  11. <Border
  12. Name="ProgressVisible" Panel.ZIndex="1" Background="Transparent" Visibility="Visible">
  13. <Border
  14. Width="374"
  15. Height="120"
  16. Background="#FFFFFF"
  17. BorderBrush="Gray"
  18. BorderThickness="1"
  19. CornerRadius="4"
  20. >
  21. <Grid>
  22. <Grid Margin="16,18,16,0"
  23. Height="54" Background="Transparent" VerticalAlignment="Top">
  24. <StackPanel Orientation="Horizontal">
  25. <TextBlock Name="ProgressBarName" Foreground="#000000" Text="{Binding T_ProgressBarName}" />
  26. <TextBlock
  27. Margin="16,0,0,0"
  28. Text="("
  29. Foreground="#000000"
  30. Visibility="Visible" />
  31. <TextBlock
  32. Name="ProgressBarCurrentSize"
  33. Foreground="#000000"
  34. Visibility="Visible" Text="{Binding ProgressBarCurrentSizeValue}" />
  35. <TextBlock
  36. Text="/"
  37. Foreground="#000000"
  38. Visibility="Visible" />
  39. <TextBlock
  40. Name="ProgressBarSize"
  41. Foreground="#000000"
  42. Visibility="Visible" Text="{Binding ProgressBarFileSize}"/>
  43. <TextBlock
  44. Text=")"
  45. Foreground="#000000"
  46. Visibility="Visible" />
  47. </StackPanel>
  48. <Button
  49. Width="12"
  50. Height="12"
  51. Padding="0,0,1,1"
  52. Margin="0,0,0,0"
  53. HorizontalAlignment="Right"
  54. VerticalAlignment="Top"
  55. BorderThickness="0"
  56. Background="Transparent"
  57. Command="{Binding CancelCommand}"
  58. Visibility="Visible">
  59. <Path Data="M6.00006 7.06072L9.46973 10.5304L10.5304 9.46973L7.06072 6.00006L10.5304 2.53039L9.46973 1.46973L6.00006 4.9394L2.53039 1.46973L1.46973 2.53039L4.9394 6.00006L1.46973 9.46973L2.53039 10.5304L6.00006 7.06072Z" Fill="#CED0D4" />
  60. </Button>
  61. <StackPanel Orientation="Horizontal"
  62. Margin="0,0,0,0"
  63. VerticalAlignment="Bottom" Background="Transparent">
  64. <ProgressBar
  65. Margin="0,0,18,0"
  66. Name="ProgressBar"
  67. Height="5"
  68. Width="280"
  69. BorderThickness="0"
  70. Foreground="Green"
  71. Maximum="100"
  72. Value="{Binding ProgressBarCurrentValue}" />
  73. <TextBlock
  74. FontSize="12"
  75. Foreground="#666666"
  76. Text="{Binding ElementName=ProgressBar,Path=Value, StringFormat={}{0}%}"
  77. />
  78. </StackPanel>
  79. </Grid>
  80. <StackPanel Name="errorStackPanel" Orientation="Horizontal" VerticalAlignment="Bottom" Visibility="{Binding ErrorStackPanelVisible}" Margin="16,18">
  81. <Grid Width="14" Height="14" Margin="4,0,8,0" VerticalAlignment="Center">
  82. <Ellipse Width="12" Height="12" Fill="#F3465B"></Ellipse>
  83. <Path Data="M7.25 4V9H8.75V4H7.25ZM7.25 10.5V12H8.75L8.75 10.5H7.25Z" Fill="white" Margin="-1,-1,1,1" />
  84. </Grid>
  85. <TextBlock Name="ErrorTextBlock" Text="{Binding T_ErrorTextBlock}" Foreground="#F3465B" FontSize="11" VerticalAlignment="Center"></TextBlock>
  86. </StackPanel>
  87. <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Visibility="Visible" HorizontalAlignment="Right" Margin="16,13">
  88. <Button Name="tryAgainBtn" Width="60" Height="24" Margin="0,0,8,0" Content="{Binding T_TryAgainBtn}" Style="{StaticResource Btn.cta}" Click="button1_Click" Command="{Binding TryAgainCommnad}" Visibility="{Binding tryAgainBtnVisible}"></Button>
  89. <Button Name="CancelBtn" Width="60" Height="24" Content="{Binding T_CancelBtn}" Style="{StaticResource btn.sec}" Command="{Binding CancelCommand}" BorderThickness="1" ></Button>
  90. </StackPanel>
  91. </Grid>
  92. </Border>
  93. </Border>
  94. </Grid>
  95. </UserControl>