CodeRegion.xaml 6.6 KB

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