OCRDownloadProgress.xaml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  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:cus="clr-namespace:PDF_Master.CustomControl"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  8. xmlns:pageeditdialogs="clr-namespace:PDF_Master.ViewModels.Dialog.PageEditDialogs"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Background="Transparent" Width="374"
  11. Height="120" d:DesignHeight="120"
  12. d:DesignWidth="374"
  13. prism:Dialog.WindowStyle="{StaticResource DialogWindowStyle}"
  14. Loaded="UserControl_Loaded"
  15. prism:ViewModelLocator.AutoWireViewModel="True"
  16. mc:Ignorable="d">
  17. <Grid>
  18. <Border
  19. Name="ProgressVisible" Panel.ZIndex="1" Background="Transparent" Visibility="Visible">
  20. <Border
  21. Width="374"
  22. Height="120"
  23. Background="#FFFFFF"
  24. BorderBrush="Gray"
  25. BorderThickness="1"
  26. CornerRadius="4"
  27. >
  28. <Grid>
  29. <Grid Margin="16,18,16,0"
  30. Height="54" Background="Transparent" VerticalAlignment="Top">
  31. <StackPanel Orientation="Horizontal">
  32. <TextBlock Name="ProgressBarName" Foreground="#000000" Text="{Binding T_ProgressBarName}" />
  33. <TextBlock
  34. Margin="16,0,0,0"
  35. Text="("
  36. Foreground="#000000"
  37. Visibility="Visible" />
  38. <TextBlock
  39. Name="ProgressBarCurrentSize"
  40. Foreground="#000000"
  41. Visibility="Visible" Text="{Binding ProgressBarCurrentSizeValue}" />
  42. <TextBlock
  43. Text="/"
  44. Foreground="#000000"
  45. Visibility="Visible" />
  46. <TextBlock
  47. Name="ProgressBarSize"
  48. Foreground="#000000"
  49. Visibility="Visible" Text="{Binding ProgressBarFileSize}"/>
  50. <TextBlock
  51. Text=")"
  52. Foreground="#000000"
  53. Visibility="Visible" />
  54. </StackPanel>
  55. <Button
  56. Width="12"
  57. Height="12"
  58. Padding="0,0,1,1"
  59. Margin="0,0,0,0"
  60. HorizontalAlignment="Right"
  61. VerticalAlignment="Top"
  62. BorderThickness="0"
  63. Background="Transparent"
  64. Command="{Binding CancelCommand}"
  65. Visibility="Collapsed">
  66. <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" />
  67. </Button>
  68. <StackPanel Orientation="Horizontal"
  69. Margin="0,0,0,0"
  70. VerticalAlignment="Bottom" Background="Transparent">
  71. <ProgressBar
  72. Margin="0,0,18,0"
  73. Name="ProgressBar"
  74. Height="5"
  75. Width="280"
  76. BorderThickness="0"
  77. Foreground="Green"
  78. Maximum="100"
  79. Value="{Binding ProgressBarCurrentValue}" />
  80. <TextBlock
  81. FontSize="12"
  82. Foreground="#666666"
  83. Text="{Binding ElementName=ProgressBar,Path=Value, StringFormat={}{0}%}"
  84. />
  85. </StackPanel>
  86. </Grid>
  87. <StackPanel Name="errorStackPanel" Orientation="Horizontal" VerticalAlignment="Bottom" Visibility="{Binding ErrorStackPanelVisible}" Margin="16,18">
  88. <Grid Width="14" Height="14" Margin="4,0,8,0" VerticalAlignment="Center">
  89. <Ellipse Width="12" Height="12" Fill="#F3465B"></Ellipse>
  90. <Path Data="M7.25 4V9H8.75V4H7.25ZM7.25 10.5V12H8.75L8.75 10.5H7.25Z" Fill="white" Margin="-1,-1,1,1" />
  91. </Grid>
  92. <TextBlock Name="ErrorTextBlock" Text="{Binding T_ErrorTextBlock}" Foreground="#F3465B" FontSize="11" VerticalAlignment="Center"></TextBlock>
  93. </StackPanel>
  94. <StackPanel Orientation="Horizontal" VerticalAlignment="Bottom" Visibility="Visible" HorizontalAlignment="Right" Margin="16,13">
  95. <Button Name="tryAgainBtn" Width="60" Height="24" Margin="0,0,8,0" Content="{Binding T_TryAgainBtn}" Style="{StaticResource Btn.cta}" Command="{Binding TryAgainCommnad}" Visibility="{Binding TryAgainBtnVisible}"></Button>
  96. <Button Name="CancelBtn" Width="60" Height="24" Content="{Binding T_CancelBtn}" Style="{StaticResource btn.sec}" Command="{Binding CancelCommand}" BorderThickness="1" ></Button>
  97. </StackPanel>
  98. </Grid>
  99. </Border>
  100. </Border>
  101. </Grid>
  102. </UserControl>