CodeRegion.xaml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.ServiceDialog.CodeRegion"
  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="326"
  11. Height="420"
  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="32,48,0,0"
  33. HorizontalAlignment="Left"
  34. VerticalAlignment="Top">
  35. <StackPanel>
  36. <TextBlock
  37. Width="Auto"
  38. Height="28"
  39. FontFamily="Segoe UI"
  40. FontSize="20"
  41. FontStyle="Normal"
  42. FontWeight="SemiBold"
  43. Text="{Binding CodeTypeName}" />
  44. <TextBlock
  45. Width="162"
  46. Height="22"
  47. Margin="0,32,0,0"
  48. HorizontalAlignment="Left"
  49. FontFamily="Segoe UI"
  50. FontSize="14"
  51. FontStyle="Normal"
  52. Text="Enter the verification code" />
  53. <WrapPanel Margin="0,8,0,0" HorizontalAlignment="Left">
  54. <TextBox
  55. x:Name="text_Code1"
  56. Width="36"
  57. Height="42"
  58. Padding="10,0,10,0"
  59. HorizontalAlignment="Right"
  60. VerticalContentAlignment="Center"
  61. FontFamily="Segoe UI"
  62. FontSize="20"
  63. FontStyle="Normal"
  64. FontWeight="SemiBold"
  65. InputMethod.IsInputMethodEnabled="False"
  66. KeyUp="text_Code1_KeyUp"
  67. PreviewTextInput="TextBox_PreviewTextInput"
  68. Text="{Binding Code1, Mode=TwoWay}"
  69. TextChanged="Code_TextChanged" />
  70. <TextBox
  71. x:Name="text_Code2"
  72. Width="36"
  73. Height="42"
  74. Margin="9,0,0,0"
  75. Padding="10,0,10,0"
  76. HorizontalAlignment="Right"
  77. VerticalContentAlignment="Center"
  78. FontFamily="Segoe UI"
  79. FontSize="20"
  80. FontStyle="Normal"
  81. FontWeight="SemiBold"
  82. InputMethod.IsInputMethodEnabled="False"
  83. KeyUp="text_Code2_KeyUp"
  84. PreviewTextInput="TextBox_PreviewTextInput"
  85. Text="{Binding Code2, Mode=TwoWay}"
  86. TextChanged="text_Code2_TextChanged" />
  87. <TextBox
  88. x:Name="text_Code3"
  89. Width="36"
  90. Height="42"
  91. Margin="9,0,0,0"
  92. Padding="10,0,10,0"
  93. HorizontalAlignment="Right"
  94. VerticalContentAlignment="Center"
  95. FontFamily="Segoe UI"
  96. FontSize="20"
  97. FontStyle="Normal"
  98. FontWeight="SemiBold"
  99. InputMethod.IsInputMethodEnabled="False"
  100. KeyUp="text_Code3_KeyUp"
  101. PreviewTextInput="TextBox_PreviewTextInput"
  102. Text="{Binding Code3, Mode=TwoWay}"
  103. TextChanged="text_Code3_TextChanged" />
  104. <TextBox
  105. x:Name="text_Code4"
  106. Width="36"
  107. Height="42"
  108. Margin="9,0,0,0"
  109. Padding="10,0,10,0"
  110. HorizontalAlignment="Right"
  111. VerticalContentAlignment="Center"
  112. FontFamily="Segoe UI"
  113. FontSize="20"
  114. FontStyle="Normal"
  115. FontWeight="SemiBold"
  116. InputMethod.IsInputMethodEnabled="False"
  117. KeyUp="text_Code4_KeyUp"
  118. PreviewTextInput="TextBox_PreviewTextInput"
  119. Text="{Binding Code4, Mode=TwoWay}"
  120. TextChanged="text_Code4_TextChanged" />
  121. <TextBox
  122. x:Name="text_Code5"
  123. Width="36"
  124. Height="42"
  125. Margin="9,0,0,0"
  126. Padding="10,0,10,0"
  127. HorizontalAlignment="Right"
  128. VerticalContentAlignment="Center"
  129. FontFamily="Segoe UI"
  130. FontSize="20"
  131. FontStyle="Normal"
  132. FontWeight="SemiBold"
  133. InputMethod.IsInputMethodEnabled="False"
  134. KeyUp="text_Code5_KeyUp"
  135. PreviewTextInput="TextBox_PreviewTextInput"
  136. Text="{Binding Code5, Mode=TwoWay}"
  137. TextChanged="text_Code5_TextChanged" />
  138. <TextBox
  139. x:Name="text_Code6"
  140. Width="36"
  141. Height="42"
  142. Margin="9,0,0,0"
  143. Padding="10,0,10,0"
  144. HorizontalAlignment="Right"
  145. VerticalContentAlignment="Center"
  146. FontFamily="Segoe UI"
  147. FontSize="20"
  148. FontStyle="Normal"
  149. FontWeight="SemiBold"
  150. InputMethod.IsInputMethodEnabled="False"
  151. KeyUp="text_Code6_KeyUp"
  152. PreviewTextInput="TextBox_PreviewTextInput"
  153. Text="{Binding Code6, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  154. TextChanged="text_Code6_TextChanged">
  155. <i:Interaction.Triggers>
  156. <i:EventTrigger EventName="TextChanged">
  157. <i:InvokeCommandAction Command="{Binding Code6ChangedCommand}" />
  158. </i:EventTrigger>
  159. </i:Interaction.Triggers>
  160. </TextBox>
  161. </WrapPanel>
  162. <WrapPanel Margin="0,10,0,0">
  163. <TextBlock
  164. Width="190"
  165. Height="20"
  166. HorizontalAlignment="Left"
  167. VerticalAlignment="Top"
  168. FontFamily="Segoe UI"
  169. FontSize="12"
  170. FontStyle="Normal"
  171. Text="Didn't receive the verification code?" />
  172. <TextBlock
  173. Width="Auto"
  174. Height="20"
  175. HorizontalAlignment="Left"
  176. VerticalAlignment="Top"
  177. FontFamily="Segoe UI"
  178. FontSize="12"
  179. FontStyle="Normal"
  180. Foreground="#1770F4"
  181. LineHeight="20"
  182. Text="{Binding Codetime}" />
  183. <TextBlock
  184. FontFamily="Segoe UI"
  185. FontSize="12"
  186. FontStyle="Normal"
  187. Foreground="#1770F4"
  188. LineHeight="20"
  189. Visibility="{Binding Codeagin, Mode=TwoWay}">
  190. <Hyperlink Command="{Binding CodetooCommand}">Click to resend</Hyperlink>
  191. </TextBlock>
  192. </WrapPanel>
  193. </StackPanel>
  194. </Grid>
  195. <Grid
  196. Width="262"
  197. Margin="32,240,0,0"
  198. HorizontalAlignment="Left"
  199. VerticalAlignment="Top">
  200. <StackPanel>
  201. <Button
  202. x:Name="Btn_RegisterNext"
  203. Width="262"
  204. Height="32"
  205. HorizontalAlignment="Left"
  206. VerticalAlignment="Top"
  207. Command="{Binding RegisterNextCommand}"
  208. Content="Sign up"
  209. IsDefault="True"
  210. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  211. Style="{StaticResource Btn.cta}" />
  212. <TextBlock
  213. Width="114"
  214. Height="20"
  215. Margin="0,10,0,0"
  216. HorizontalAlignment="Center"
  217. VerticalAlignment="Top"
  218. FontFamily="Segoe UI"
  219. FontSize="12"
  220. FontStyle="Normal"
  221. Foreground="#1770F4"
  222. LineHeight="20">
  223. <Hyperlink Command="{Binding BackRegisterLastCommand}">Back to previous step</Hyperlink>
  224. </TextBlock>
  225. </StackPanel>
  226. </Grid>
  227. <Grid
  228. x:Name="Grid_RegisterVis"
  229. Width="326"
  230. Height="48"
  231. VerticalAlignment="Bottom"
  232. Background="#FDC7C6"
  233. Visibility="{Binding RegisterCodemsgVis, Mode=TwoWay}">
  234. <WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  235. <Border
  236. Width="14"
  237. Height="14"
  238. Margin="-1,-4,0,0"
  239. Background="#F3465B"
  240. CornerRadius="100">
  241. <Path
  242. Margin="-1,-4,0,0"
  243. Data="M7.25 8V13H8.75V8H7.25ZM7.25 14.5V16H8.75L8.75 14.5H7.25Z"
  244. Fill="White" />
  245. </Border>
  246. <TextBlock
  247. HorizontalAlignment="Center"
  248. VerticalAlignment="Center"
  249. FontFamily="Segoe UI"
  250. FontSize="12"
  251. FontStyle="Normal"
  252. LineHeight="22"
  253. Text="{Binding RegisterCodemsg, Mode=TwoWay}"
  254. TextAlignment="Center"
  255. TextWrapping="Wrap" />
  256. </WrapPanel>
  257. </Grid>
  258. </Grid>
  259. </UserControl>