UserOutCodeRegion.xaml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.ServiceDialog.UserOutCodeRegion"
  3. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  7. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.ServiceDialog"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Width="310"
  11. Height="368"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. mc:Ignorable="d">
  14. <Grid Background="White">
  15. <Button
  16. Width="46"
  17. Height="32"
  18. Margin="8"
  19. HorizontalAlignment="Right"
  20. VerticalAlignment="Top"
  21. Background="Transparent"
  22. IsCancel="True"
  23. Style="{StaticResource CloseBtn}"
  24. WindowChrome.IsHitTestVisibleInChrome="True">
  25. <Path
  26. Width="46"
  27. Height="32"
  28. Data="M23 17.708L18.8545 21.8535C18.7568 21.9512 18.6396 22 18.5029 22C18.3597 22 18.2393 21.9528 18.1416 21.8584C18.0472 21.7607 18 21.6403 18 21.4971C18 21.3604 18.0488 21.2432 18.1465 21.1455L22.292 17L18.1465 12.8545C18.0488 12.7568 18 12.638 18 12.498C18 12.4297 18.013 12.3646 18.0391 12.3027C18.0651 12.2409 18.1009 12.1888 18.1465 12.1465C18.1921 12.1009 18.2458 12.0651 18.3076 12.0391C18.3695 12.013 18.4346 12 18.5029 12C18.6396 12 18.7568 12.0488 18.8545 12.1465L23 16.292L27.1455 12.1465C27.2432 12.0488 27.362 12 27.502 12C27.5703 12 27.6338 12.013 27.6924 12.0391C27.7542 12.0651 27.8079 12.1009 27.8535 12.1465C27.8991 12.1921 27.9349 12.2458 27.9609 12.3076C27.987 12.3662 28 12.4297 28 12.498C28 12.638 27.9512 12.7568 27.8535 12.8545L23.708 17L27.8535 21.1455C27.9512 21.2432 28 21.3604 28 21.4971C28 21.5654 27.987 21.6305 27.9609 21.6924C27.9349 21.7542 27.8991 21.8079 27.8535 21.8535C27.8112 21.8991 27.7591 21.9349 27.6973 21.9609C27.6354 21.987 27.5703 22 27.502 22C27.362 22 27.2432 21.9512 27.1455 21.8535L23 17.708Z"
  29. Fill="Black" />
  30. </Button>
  31. <Grid
  32. Margin="0,40,0,0"
  33. HorizontalAlignment="Center"
  34. VerticalAlignment="Top">
  35. <StackPanel>
  36. <TextBlock
  37. FontFamily="Segoe UI"
  38. FontSize="20"
  39. FontStyle="Normal"
  40. FontWeight="SemiBold"
  41. LineHeight="28"
  42. Text="Cancel account" />
  43. <TextBlock
  44. Margin="0,32,0,0"
  45. HorizontalAlignment="Left"
  46. FontFamily="Segoe UI"
  47. FontSize="14"
  48. FontStyle="Normal"
  49. LineHeight="22"
  50. Text="Enter the verification code" />
  51. <WrapPanel Margin="0,8,0,0" HorizontalAlignment="Left">
  52. <TextBox
  53. x:Name="text_Code1"
  54. Width="36"
  55. Height="42"
  56. Padding="10,0,10,0"
  57. HorizontalAlignment="Right"
  58. VerticalContentAlignment="Center"
  59. FontFamily="Segoe UI"
  60. FontSize="20"
  61. FontStyle="Normal"
  62. FontWeight="SemiBold"
  63. InputMethod.IsInputMethodEnabled="False"
  64. KeyUp="text_Code1_KeyUp"
  65. PreviewTextInput="TextBox_PreviewTextInput"
  66. Text="{Binding Code1, Mode=TwoWay}"
  67. TextChanged="Code_TextChanged" />
  68. <TextBox
  69. x:Name="text_Code2"
  70. Width="36"
  71. Height="42"
  72. Margin="9,0,0,0"
  73. Padding="10,0,10,0"
  74. HorizontalAlignment="Right"
  75. VerticalContentAlignment="Center"
  76. FontFamily="Segoe UI"
  77. FontSize="20"
  78. FontStyle="Normal"
  79. FontWeight="SemiBold"
  80. InputMethod.IsInputMethodEnabled="False"
  81. KeyUp="text_Code2_KeyUp"
  82. PreviewTextInput="TextBox_PreviewTextInput"
  83. Text="{Binding Code2, Mode=TwoWay}"
  84. TextChanged="text_Code2_TextChanged" />
  85. <TextBox
  86. x:Name="text_Code3"
  87. Width="36"
  88. Height="42"
  89. Margin="9,0,0,0"
  90. Padding="10,0,10,0"
  91. HorizontalAlignment="Right"
  92. VerticalContentAlignment="Center"
  93. FontFamily="Segoe UI"
  94. FontSize="20"
  95. FontStyle="Normal"
  96. FontWeight="SemiBold"
  97. InputMethod.IsInputMethodEnabled="False"
  98. KeyUp="text_Code3_KeyUp"
  99. PreviewTextInput="TextBox_PreviewTextInput"
  100. Text="{Binding Code3, Mode=TwoWay}"
  101. TextChanged="text_Code3_TextChanged" />
  102. <TextBox
  103. x:Name="text_Code4"
  104. Width="36"
  105. Height="42"
  106. Margin="9,0,0,0"
  107. Padding="10,0,10,0"
  108. HorizontalAlignment="Right"
  109. VerticalContentAlignment="Center"
  110. FontFamily="Segoe UI"
  111. FontSize="20"
  112. FontStyle="Normal"
  113. FontWeight="SemiBold"
  114. InputMethod.IsInputMethodEnabled="False"
  115. KeyUp="text_Code4_KeyUp"
  116. PreviewTextInput="TextBox_PreviewTextInput"
  117. Text="{Binding Code4, Mode=TwoWay}"
  118. TextChanged="text_Code4_TextChanged" />
  119. <TextBox
  120. x:Name="text_Code5"
  121. Width="36"
  122. Height="42"
  123. Margin="9,0,0,0"
  124. Padding="10,0,10,0"
  125. HorizontalAlignment="Right"
  126. VerticalContentAlignment="Center"
  127. FontFamily="Segoe UI"
  128. FontSize="20"
  129. FontStyle="Normal"
  130. FontWeight="SemiBold"
  131. InputMethod.IsInputMethodEnabled="False"
  132. KeyUp="text_Code5_KeyUp"
  133. PreviewTextInput="TextBox_PreviewTextInput"
  134. Text="{Binding Code5, Mode=TwoWay}"
  135. TextChanged="text_Code5_TextChanged" />
  136. <TextBox
  137. x:Name="text_Code6"
  138. Width="36"
  139. Height="42"
  140. Margin="9,0,0,0"
  141. Padding="10,0,10,0"
  142. HorizontalAlignment="Right"
  143. VerticalContentAlignment="Center"
  144. FontFamily="Segoe UI"
  145. FontSize="20"
  146. FontStyle="Normal"
  147. FontWeight="SemiBold"
  148. InputMethod.IsInputMethodEnabled="False"
  149. KeyUp="text_Code6_KeyUp"
  150. PreviewTextInput="TextBox_PreviewTextInput"
  151. Text="{Binding Code6, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  152. TextChanged="text_Code6_TextChanged" />
  153. </WrapPanel>
  154. <WrapPanel Margin="0,10,0,0">
  155. <TextBlock
  156. Width="190"
  157. Height="20"
  158. HorizontalAlignment="Left"
  159. VerticalAlignment="Top"
  160. FontFamily="Segoe UI"
  161. FontSize="12"
  162. FontStyle="Normal"
  163. Text="Didn't receive the verification code?" />
  164. <TextBlock
  165. Width="Auto"
  166. Height="20"
  167. HorizontalAlignment="Left"
  168. VerticalAlignment="Top"
  169. FontFamily="Segoe UI"
  170. FontSize="12"
  171. FontStyle="Normal"
  172. Foreground="#1770F4"
  173. LineHeight="20"
  174. Text="{Binding Codetime}" />
  175. <TextBlock
  176. FontFamily="Segoe UI"
  177. FontSize="12"
  178. FontStyle="Normal"
  179. Foreground="#1770F4"
  180. LineHeight="20"
  181. Visibility="{Binding Codeagin, Mode=TwoWay}">
  182. <Hyperlink Command="{Binding CodetooCommand}">Click to resend</Hyperlink>
  183. </TextBlock>
  184. </WrapPanel>
  185. <Button
  186. x:Name="Btn_RegisterNext"
  187. Width="200"
  188. Height="32"
  189. Margin="0,34,0,0"
  190. HorizontalAlignment="Center"
  191. VerticalAlignment="Top"
  192. Command="{Binding UserOutCommand}"
  193. Content="Cancellation"
  194. IsDefault="True"
  195. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  196. Style="{StaticResource Btn.cta}" />
  197. <Button
  198. Width="200"
  199. Height="32"
  200. Margin="0,8,0,0"
  201. HorizontalAlignment="Center"
  202. VerticalAlignment="Top"
  203. Command="{Binding UserOutCancelCommand}"
  204. Style="{StaticResource btn.ghost}">
  205. <TextBlock Text="Cancel" />
  206. </Button>
  207. </StackPanel>
  208. </Grid>
  209. <Grid
  210. x:Name="Grid_UserCodemsgVis"
  211. Width="310"
  212. Height="48"
  213. HorizontalAlignment="Center"
  214. VerticalAlignment="Bottom"
  215. Background="#FDC7C6"
  216. Visibility="{Binding UserCodemsgVis, Mode=TwoWay}">
  217. <WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  218. <Border
  219. Width="14"
  220. Height="14"
  221. Margin="-1,-4,0,0"
  222. Background="#F3465B"
  223. CornerRadius="100">
  224. <Path
  225. Margin="-1,-4,0,0"
  226. Data="M7.25 8V13H8.75V8H7.25ZM7.25 14.5V16H8.75L8.75 14.5H7.25Z"
  227. Fill="White" />
  228. </Border>
  229. <TextBlock
  230. HorizontalAlignment="Center"
  231. VerticalAlignment="Center"
  232. FontFamily="Segoe UI"
  233. FontSize="12"
  234. FontStyle="Normal"
  235. LineHeight="22"
  236. Text="{Binding UserCodemsg, Mode=TwoWay}"
  237. TextAlignment="Center"
  238. TextWrapping="Wrap" />
  239. </WrapPanel>
  240. </Grid>
  241. </Grid>
  242. </UserControl>