UserOutCodeRegion.xaml 6.5 KB

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