OCRDownloadProgress.xaml 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.ConverterDialogs.OCRDownloadProgress"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:cus="clr-namespace:PDF_Master.CustomControl"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="374"
  12. Height="120"
  13. d:DesignHeight="120"
  14. d:DesignWidth="374"
  15. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  16. prism:ViewModelLocator.AutoWireViewModel="True"
  17. Background="Transparent"
  18. Loaded="UserControl_Loaded"
  19. mc:Ignorable="d">
  20. <Grid>
  21. <Border
  22. Name="ProgressVisible"
  23. Panel.ZIndex="1"
  24. Background="Transparent"
  25. Visibility="Visible">
  26. <Border
  27. Width="374"
  28. Height="120"
  29. Background="#FFFFFF"
  30. BorderBrush="Gray"
  31. BorderThickness="1"
  32. CornerRadius="4">
  33. <Grid>
  34. <Grid
  35. Height="54"
  36. Margin="16,18,16,0"
  37. VerticalAlignment="Top"
  38. Background="Transparent">
  39. <StackPanel Orientation="Horizontal">
  40. <TextBlock
  41. Name="ProgressBarName"
  42. Foreground="#000000"
  43. Text="{Binding T_ProgressBarName}" />
  44. <TextBlock
  45. Margin="16,0,0,0"
  46. Foreground="#000000"
  47. Text="("
  48. Visibility="Visible" />
  49. <TextBlock
  50. Name="ProgressBarCurrentSize"
  51. Foreground="#000000"
  52. Text="{Binding ProgressBarCurrentSizeValue}"
  53. Visibility="Visible" />
  54. <TextBlock
  55. Foreground="#000000"
  56. Text="/"
  57. Visibility="Visible" />
  58. <TextBlock
  59. Name="ProgressBarSize"
  60. Foreground="#000000"
  61. Text="{Binding ProgressBarFileSize}"
  62. Visibility="Visible" />
  63. <TextBlock
  64. Foreground="#000000"
  65. Text=")"
  66. Visibility="Visible" />
  67. </StackPanel>
  68. <Button
  69. Width="12"
  70. Height="12"
  71. Margin="0,0,0,0"
  72. Padding="0,0,1,1"
  73. HorizontalAlignment="Right"
  74. VerticalAlignment="Top"
  75. Background="Transparent"
  76. BorderThickness="0"
  77. Command="{Binding CancelCommand}"
  78. Visibility="Collapsed">
  79. <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" />
  80. </Button>
  81. <StackPanel
  82. Margin="0,0,0,0"
  83. VerticalAlignment="Bottom"
  84. Background="Transparent"
  85. Orientation="Horizontal">
  86. <ProgressBar
  87. Name="ProgressBar"
  88. Width="280"
  89. Height="5"
  90. Margin="0,0,18,0"
  91. BorderThickness="0"
  92. Foreground="Green"
  93. Maximum="100"
  94. Value="{Binding ProgressBarCurrentValue}" />
  95. <TextBlock
  96. FontSize="12"
  97. Foreground="#666666"
  98. Text="{Binding ElementName=ProgressBar, Path=Value, StringFormat={}{0}%}" />
  99. </StackPanel>
  100. </Grid>
  101. <StackPanel
  102. Name="errorStackPanel"
  103. Margin="16,18"
  104. VerticalAlignment="Bottom"
  105. Orientation="Horizontal"
  106. Visibility="{Binding ErrorStackPanelVisible}">
  107. <Grid
  108. Width="14"
  109. Height="14"
  110. Margin="4,0,8,0"
  111. VerticalAlignment="Center">
  112. <Ellipse
  113. Width="12"
  114. Height="12"
  115. Fill="#F3465B" />
  116. <Path
  117. Margin="-1,-1,1,1"
  118. Data="M7.25 4V9H8.75V4H7.25ZM7.25 10.5V12H8.75L8.75 10.5H7.25Z"
  119. Fill="white" />
  120. </Grid>
  121. <TextBlock
  122. Name="ErrorTextBlock"
  123. VerticalAlignment="Center"
  124. FontSize="11"
  125. Foreground="#F3465B"
  126. Text="{Binding T_ErrorTextBlock}" />
  127. </StackPanel>
  128. <StackPanel
  129. Margin="16,13"
  130. HorizontalAlignment="Right"
  131. VerticalAlignment="Bottom"
  132. Orientation="Horizontal"
  133. Visibility="Visible">
  134. <Button
  135. Name="tryAgainBtn"
  136. Width="80"
  137. Height="30"
  138. Margin="0,0,8,0"
  139. Command="{Binding TryAgainCommnad}"
  140. Content="{Binding T_TryAgainBtn}"
  141. Style="{StaticResource Btn.cta}"
  142. Visibility="{Binding TryAgainBtnVisible}" />
  143. <Button
  144. Name="CancelBtn"
  145. Width="60"
  146. Height="24"
  147. BorderThickness="1"
  148. Command="{Binding CancelCommand}"
  149. Content="{Binding T_CancelBtn}"
  150. Style="{StaticResource btn.sec}" />
  151. </StackPanel>
  152. </Grid>
  153. </Border>
  154. </Border>
  155. </Grid>
  156. </UserControl>