CodeRegion.xaml 9.9 KB

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