CodeRegion.xaml 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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. <TextBlock
  16. Width="Auto"
  17. Height="28"
  18. Margin="32,48,0,0"
  19. HorizontalAlignment="Left"
  20. VerticalAlignment="Top"
  21. FontFamily="Segoe UI"
  22. FontSize="20"
  23. FontStyle="Normal"
  24. FontWeight="SemiBold"
  25. Text="{Binding CodeTypeName}" />
  26. <TextBlock
  27. Width="162"
  28. Height="22"
  29. Margin="32,108,0,0"
  30. HorizontalAlignment="Left"
  31. VerticalAlignment="Top"
  32. FontFamily="Segoe UI"
  33. FontSize="14"
  34. FontStyle="Normal"
  35. Text="Enter the verification code" />
  36. <TextBox
  37. x:Name="text_Code1"
  38. Width="36"
  39. Height="42"
  40. Margin="32,138,0,0"
  41. Padding="10"
  42. HorizontalAlignment="Left"
  43. VerticalAlignment="Top"
  44. FontFamily="Segoe UI"
  45. FontSize="12"
  46. FontStyle="Normal"
  47. KeyUp="text_Code1_KeyUp"
  48. Text="{Binding Code1, Mode=TwoWay}"
  49. TextChanged="Code_TextChanged" />
  50. <TextBox
  51. x:Name="text_Code2"
  52. Width="36"
  53. Height="42"
  54. Margin="76,138,0,0"
  55. Padding="10"
  56. HorizontalAlignment="Left"
  57. VerticalAlignment="Top"
  58. FontFamily="Segoe UI"
  59. KeyUp="text_Code2_KeyUp"
  60. FontSize="12"
  61. FontStyle="Normal"
  62. Text="{Binding Code2, Mode=TwoWay}"
  63. TextChanged="text_Code2_TextChanged" />
  64. <TextBox
  65. x:Name="text_Code3"
  66. Width="36"
  67. Height="42"
  68. KeyUp="text_Code3_KeyUp"
  69. Margin="120,138,0,0"
  70. Padding="10"
  71. HorizontalAlignment="Left"
  72. VerticalAlignment="Top"
  73. FontFamily="Segoe UI"
  74. FontSize="12"
  75. FontStyle="Normal"
  76. Text="{Binding Code3, Mode=TwoWay}"
  77. TextChanged="text_Code3_TextChanged" />
  78. <TextBox
  79. x:Name="text_Code4"
  80. Width="36"
  81. Height="42"
  82. Margin="164,138,0,0"
  83. Padding="10"
  84. KeyUp="text_Code4_KeyUp"
  85. HorizontalAlignment="Left"
  86. VerticalAlignment="Top"
  87. FontFamily="Segoe UI"
  88. FontSize="12"
  89. FontStyle="Normal"
  90. Text="{Binding Code4, Mode=TwoWay}"
  91. TextChanged="text_Code4_TextChanged" />
  92. <TextBox
  93. x:Name="text_Code5"
  94. Width="36"
  95. Height="42"
  96. KeyUp="text_Code5_KeyUp"
  97. Margin="208,138,0,0"
  98. Padding="10"
  99. HorizontalAlignment="Left"
  100. VerticalAlignment="Top"
  101. FontFamily="Segoe UI"
  102. FontSize="12"
  103. FontStyle="Normal"
  104. Text="{Binding Code5, Mode=TwoWay}"
  105. TextChanged="text_Code5_TextChanged" />
  106. <TextBox
  107. x:Name="text_Code6"
  108. Width="36"
  109. Height="42"
  110. Margin="252,138,0,0"
  111. Padding="10"
  112. KeyUp="text_Code6_KeyUp"
  113. HorizontalAlignment="Left"
  114. VerticalAlignment="Top"
  115. FontFamily="Segoe UI"
  116. FontSize="12"
  117. FontStyle="Normal"
  118. Text="{Binding Code6, Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"
  119. TextChanged="text_Code6_TextChanged">
  120. <i:Interaction.Triggers>
  121. <i:EventTrigger EventName="TextChanged">
  122. <i:InvokeCommandAction Command="{Binding Code6ChangedCommand}" />
  123. </i:EventTrigger>
  124. </i:Interaction.Triggers>
  125. </TextBox>
  126. <TextBlock
  127. Width="190"
  128. Height="20"
  129. Margin="32,190,0,0"
  130. HorizontalAlignment="Left"
  131. VerticalAlignment="Top"
  132. FontFamily="Segoe UI"
  133. FontSize="12"
  134. FontStyle="Normal"
  135. Text="Didn't receive the verification code?" />
  136. <TextBlock
  137. Width="79"
  138. Height="20"
  139. Margin="226,190,0,0"
  140. HorizontalAlignment="Left"
  141. VerticalAlignment="Top"
  142. FontFamily="Segoe UI"
  143. FontSize="12"
  144. FontStyle="Normal"
  145. Foreground="#1770F4"
  146. LineHeight="20"
  147. Text="{Binding Codetime}" />
  148. <TextBlock
  149. Width="79"
  150. Height="20"
  151. Margin="226,190,0,0"
  152. HorizontalAlignment="Left"
  153. VerticalAlignment="Top"
  154. FontFamily="Segoe UI"
  155. FontSize="12"
  156. FontStyle="Normal"
  157. Foreground="#1770F4"
  158. LineHeight="20"
  159. Visibility="{Binding Codeagin, Mode=TwoWay}">
  160. <Hyperlink Command="{Binding CodetooCommand}">Click to resend</Hyperlink>
  161. </TextBlock>
  162. <Button
  163. x:Name="Btn_RegisterNext"
  164. Width="262"
  165. Height="32"
  166. Margin="32,240,0,0"
  167. HorizontalAlignment="Left"
  168. VerticalAlignment="Top"
  169. Command="{Binding RegisterNextCommand}"
  170. Content="Sign up"
  171. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  172. Style="{StaticResource Btn.cta}" />
  173. <TextBlock
  174. Width="114"
  175. Height="20"
  176. Margin="106,282,0,0"
  177. HorizontalAlignment="Left"
  178. VerticalAlignment="Top"
  179. FontFamily="Segoe UI"
  180. FontSize="12"
  181. FontStyle="Normal"
  182. Foreground="#1770F4"
  183. LineHeight="20">
  184. <Hyperlink Command="{Binding BackRegisterLastCommand}">Back to previous step</Hyperlink>
  185. </TextBlock>
  186. <Grid
  187. Width="326"
  188. Height="48"
  189. Margin="0,372,0,0"
  190. HorizontalAlignment="Left"
  191. VerticalAlignment="Top"
  192. Visibility="{Binding RegisterCodemsgVis}"
  193. Background="#FDC7C6" />
  194. <TextBlock
  195. Height="22"
  196. Width="185"
  197. Margin="32,385,0,0"
  198. HorizontalAlignment="Left"
  199. VerticalAlignment="Top"
  200. FontFamily="Segoe UI"
  201. FontSize="12"
  202. FontStyle="Normal"
  203. LineHeight="22"
  204. Text="{Binding RegisterCodemsg}" />
  205. </Grid>
  206. </UserControl>