UserOutCodeRegion.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301
  1. <UserControl
  2. x:Class="PDF_Master.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_Master.Views.Dialog.ServiceDialog"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Width="440"
  11. Height="486"
  12. prism:ViewModelLocator.AutoWireViewModel="True"
  13. mc:Ignorable="d">
  14. <Grid Background="White">
  15. <Button
  16. Width="46"
  17. Height="32"
  18. Margin="8"
  19. HorizontalAlignment="Right"
  20. VerticalAlignment="Top"
  21. Background="Transparent"
  22. IsCancel="True"
  23. Style="{StaticResource CloseBtn}"
  24. WindowChrome.IsHitTestVisibleInChrome="True">
  25. <Path
  26. Width="46"
  27. Height="32"
  28. Data="M23 17.708L18.8545 21.8535C18.7568 21.9512 18.6396 22 18.5029 22C18.3597 22 18.2393 21.9528 18.1416 21.8584C18.0472 21.7607 18 21.6403 18 21.4971C18 21.3604 18.0488 21.2432 18.1465 21.1455L22.292 17L18.1465 12.8545C18.0488 12.7568 18 12.638 18 12.498C18 12.4297 18.013 12.3646 18.0391 12.3027C18.0651 12.2409 18.1009 12.1888 18.1465 12.1465C18.1921 12.1009 18.2458 12.0651 18.3076 12.0391C18.3695 12.013 18.4346 12 18.5029 12C18.6396 12 18.7568 12.0488 18.8545 12.1465L23 16.292L27.1455 12.1465C27.2432 12.0488 27.362 12 27.502 12C27.5703 12 27.6338 12.013 27.6924 12.0391C27.7542 12.0651 27.8079 12.1009 27.8535 12.1465C27.8991 12.1921 27.9349 12.2458 27.9609 12.3076C27.987 12.3662 28 12.4297 28 12.498C28 12.638 27.9512 12.7568 27.8535 12.8545L23.708 17L27.8535 21.1455C27.9512 21.2432 28 21.3604 28 21.4971C28 21.5654 27.987 21.6305 27.9609 21.6924C27.9349 21.7542 27.8991 21.8079 27.8535 21.8535C27.8112 21.8991 27.7591 21.9349 27.6973 21.9609C27.6354 21.987 27.5703 22 27.502 22C27.362 22 27.2432 21.9512 27.1455 21.8535L23 17.708Z"
  29. Fill="Black" />
  30. </Button>
  31. <Grid
  32. Margin="0,60,0,0"
  33. HorizontalAlignment="Center"
  34. VerticalAlignment="Top">
  35. <StackPanel>
  36. <TextBlock
  37. FontFamily="Segoe UI"
  38. FontSize="20"
  39. FontStyle="Normal"
  40. FontWeight="SemiBold"
  41. LineHeight="28"
  42. Text="{Binding Text_userout}" />
  43. <TextBlock
  44. Margin="0,32,0,0"
  45. HorizontalAlignment="Left"
  46. FontFamily="Segoe UI"
  47. FontSize="14"
  48. FontStyle="Normal"
  49. LineHeight="22"
  50. Text="{Binding Text_vcode}" />
  51. <WrapPanel Margin="0,18,0,0" HorizontalAlignment="Center">
  52. <Grid >
  53. <TextBox
  54. x:Name="text_Code1"
  55. Width="36"
  56. Height="42"
  57. Padding="10,0,10,0"
  58. HorizontalAlignment="Right"
  59. VerticalContentAlignment="Center"
  60. Effect="{StaticResource shadow.blue-0-4}"
  61. FontFamily="Segoe UI"
  62. FontSize="20"
  63. FontStyle="Normal"
  64. FontWeight="SemiBold"
  65. InputMethod.IsInputMethodEnabled="False"
  66. KeyUp="text_Code1_KeyUp"
  67. PreviewTextInput="TextBox_PreviewTextInput"
  68. Text="{Binding Code1, Mode=TwoWay}"
  69. TextChanged="Code_TextChanged" />
  70. <Border
  71. BorderBrush="#F3465B"
  72. BorderThickness="1"
  73. Effect="{StaticResource shadow.red-0-4}"
  74. Visibility="{Binding ElementName=Grid_UserCodemsgVis, Path=Visibility}" />
  75. </Grid>
  76. <Grid Margin="9,0,0,0">
  77. <TextBox
  78. x:Name="text_Code2"
  79. Width="36"
  80. Height="42"
  81. Padding="10,0,10,0"
  82. HorizontalAlignment="Right"
  83. VerticalContentAlignment="Center"
  84. Effect="{StaticResource shadow.blue-0-4}"
  85. FontFamily="Segoe UI"
  86. FontSize="20"
  87. FontStyle="Normal"
  88. FontWeight="SemiBold"
  89. InputMethod.IsInputMethodEnabled="False"
  90. KeyUp="text_Code2_KeyUp"
  91. PreviewTextInput="TextBox_PreviewTextInput"
  92. Text="{Binding Code2, Mode=TwoWay}"
  93. TextChanged="text_Code2_TextChanged" />
  94. <Border
  95. BorderBrush="#F3465B"
  96. BorderThickness="1"
  97. Effect="{StaticResource shadow.red-0-4}"
  98. Visibility="{Binding ElementName=Grid_UserCodemsgVis, Path=Visibility}" />
  99. </Grid>
  100. <Grid Margin="9,0,0,0">
  101. <TextBox
  102. x:Name="text_Code3"
  103. Width="36"
  104. Height="42"
  105. Padding="10,0,10,0"
  106. HorizontalAlignment="Right"
  107. VerticalContentAlignment="Center"
  108. Effect="{StaticResource shadow.blue-0-4}"
  109. FontFamily="Segoe UI"
  110. FontSize="20"
  111. FontStyle="Normal"
  112. FontWeight="SemiBold"
  113. InputMethod.IsInputMethodEnabled="False"
  114. KeyUp="text_Code3_KeyUp"
  115. PreviewTextInput="TextBox_PreviewTextInput"
  116. Text="{Binding Code3, Mode=TwoWay}"
  117. TextChanged="text_Code3_TextChanged" />
  118. <Border
  119. BorderBrush="#F3465B"
  120. BorderThickness="1"
  121. Effect="{StaticResource shadow.red-0-4}"
  122. Visibility="{Binding ElementName=Grid_UserCodemsgVis, Path=Visibility}" />
  123. </Grid>
  124. <Grid Margin="9,0,0,0">
  125. <TextBox
  126. x:Name="text_Code4"
  127. Width="36"
  128. Height="42"
  129. Padding="10,0,10,0"
  130. HorizontalAlignment="Right"
  131. VerticalContentAlignment="Center"
  132. Effect="{StaticResource shadow.blue-0-4}"
  133. FontFamily="Segoe UI"
  134. FontSize="20"
  135. FontStyle="Normal"
  136. FontWeight="SemiBold"
  137. InputMethod.IsInputMethodEnabled="False"
  138. KeyUp="text_Code4_KeyUp"
  139. PreviewTextInput="TextBox_PreviewTextInput"
  140. Text="{Binding Code4, Mode=TwoWay}"
  141. TextChanged="text_Code4_TextChanged" />
  142. <Border
  143. BorderBrush="#F3465B"
  144. BorderThickness="1"
  145. Effect="{StaticResource shadow.red-0-4}"
  146. Visibility="{Binding ElementName=Grid_UserCodemsgVis, Path=Visibility}" />
  147. </Grid>
  148. <Grid Margin="9,0,0,0">
  149. <TextBox
  150. x:Name="text_Code5"
  151. Width="36"
  152. Height="42"
  153. Padding="10,0,10,0"
  154. HorizontalAlignment="Right"
  155. VerticalContentAlignment="Center"
  156. Effect="{StaticResource shadow.blue-0-4}"
  157. FontFamily="Segoe UI"
  158. FontSize="20"
  159. FontStyle="Normal"
  160. FontWeight="SemiBold"
  161. InputMethod.IsInputMethodEnabled="False"
  162. KeyUp="text_Code5_KeyUp"
  163. PreviewTextInput="TextBox_PreviewTextInput"
  164. Text="{Binding Code5, Mode=TwoWay}"
  165. TextChanged="text_Code5_TextChanged" />
  166. <Border
  167. BorderBrush="#F3465B"
  168. BorderThickness="1"
  169. Effect="{StaticResource shadow.red-0-4}"
  170. Visibility="{Binding ElementName=Grid_UserCodemsgVis, Path=Visibility}" />
  171. </Grid>
  172. <Grid Margin="9,0,0,0">
  173. <TextBox
  174. x:Name="text_Code6"
  175. Width="36"
  176. Height="42"
  177. Padding="10,0,10,0"
  178. HorizontalAlignment="Right"
  179. VerticalContentAlignment="Center"
  180. Effect="{StaticResource shadow.blue-0-4}"
  181. FontFamily="Segoe UI"
  182. FontSize="20"
  183. FontStyle="Normal"
  184. FontWeight="SemiBold"
  185. InputMethod.IsInputMethodEnabled="False"
  186. KeyUp="text_Code6_KeyUp"
  187. PreviewTextInput="TextBox_PreviewTextInput"
  188. Text="{Binding Code6, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  189. TextChanged="text_Code6_TextChanged">
  190. <i:Interaction.Triggers>
  191. <i:EventTrigger EventName="TextChanged">
  192. <i:InvokeCommandAction Command="{Binding Code6ChangedCommand}" />
  193. </i:EventTrigger>
  194. </i:Interaction.Triggers>
  195. </TextBox>
  196. <Border
  197. BorderBrush="#F3465B"
  198. BorderThickness="1"
  199. Effect="{StaticResource shadow.red-0-4}"
  200. Visibility="{Binding ElementName=Grid_UserCodemsgVis, Path=Visibility}" />
  201. </Grid>
  202. </WrapPanel>
  203. <WrapPanel Margin="0,12,0,0" HorizontalAlignment="Center">
  204. <TextBlock
  205. Width="190"
  206. Height="20"
  207. HorizontalAlignment="Left"
  208. VerticalAlignment="Top"
  209. FontFamily="Segoe UI"
  210. FontSize="12"
  211. FontStyle="Normal"
  212. Text="{Binding Text_novcode}" />
  213. <TextBlock
  214. Width="Auto"
  215. Height="20"
  216. HorizontalAlignment="Left"
  217. VerticalAlignment="Top"
  218. FontFamily="Segoe UI"
  219. FontSize="12"
  220. FontStyle="Normal"
  221. Foreground="#1770F4"
  222. LineHeight="20"
  223. Text="{Binding Codetime}" />
  224. <TextBlock
  225. FontFamily="Segoe UI"
  226. FontSize="12"
  227. FontStyle="Normal"
  228. Foreground="#1770F4"
  229. LineHeight="20"
  230. Visibility="{Binding Codeagin, Mode=TwoWay}">
  231. <Hyperlink Command="{Binding CodetooCommand}">
  232. <TextBlock Text="{Binding Text_recode}"/>
  233. </Hyperlink>
  234. </TextBlock>
  235. </WrapPanel>
  236. <Button
  237. x:Name="Btn_RegisterNext"
  238. Width="304"
  239. Height="32"
  240. Margin="0,60,0,0"
  241. HorizontalAlignment="Center"
  242. VerticalAlignment="Top"
  243. Command="{Binding UserOutCommand}"
  244. Content="{Binding Text_Cancellatio}"
  245. IsDefault="True"
  246. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  247. Style="{StaticResource Btn.cta}" />
  248. <Button
  249. Width="304"
  250. Height="32"
  251. Margin="0,20,0,0"
  252. HorizontalAlignment="Center"
  253. VerticalAlignment="Top"
  254. Content="{Binding BtText_cancel}"
  255. Command="{Binding UserOutCancelCommand}"
  256. Style="{StaticResource btn.sec}">
  257. </Button>
  258. </StackPanel>
  259. </Grid>
  260. <Grid
  261. x:Name="Grid_UserCodemsgVis"
  262. Width="440"
  263. Height="48"
  264. HorizontalAlignment="Center"
  265. VerticalAlignment="Bottom"
  266. Background="#FDC7C6"
  267. Visibility="{Binding UserCodemsgVis, Mode=TwoWay}">
  268. <WrapPanel HorizontalAlignment="Left" VerticalAlignment="Center" Margin="9,0,0,0">
  269. <Border
  270. Width="14"
  271. Height="14"
  272. Margin="-1,-4,0,0"
  273. Background="#F3465B"
  274. CornerRadius="100">
  275. <Path
  276. Margin="-1,-4,0,0"
  277. Data="M7.25 8V13H8.75V8H7.25ZM7.25 14.5V16H8.75L8.75 14.5H7.25Z"
  278. Fill="White" />
  279. </Border>
  280. <TextBlock
  281. Margin="9,0,0,0"
  282. HorizontalAlignment="Center"
  283. VerticalAlignment="Center"
  284. FontFamily="Segoe UI"
  285. FontSize="12"
  286. FontStyle="Normal"
  287. LineHeight="22"
  288. Text="{Binding UserCodemsg, Mode=TwoWay}"
  289. TextAlignment="Center"
  290. TextWrapping="Wrap" />
  291. </WrapPanel>
  292. </Grid>
  293. </Grid>
  294. </UserControl>