UserOutCodeRegion.xaml 9.6 KB

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