UserOutCodeRegion.xaml 6.8 KB

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