CodeRegion.xaml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314
  1. <UserControl
  2. x:Class="PDF_Master.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_Master.Views.Dialog.ServiceDialog"
  8. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  9. xmlns:prism="http://prismlibrary.com/"
  10. Width="404"
  11. Height="420"
  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,48,0,0"
  33. HorizontalAlignment="Center"
  34. VerticalAlignment="Top">
  35. <StackPanel>
  36. <TextBlock
  37. Width="Auto"
  38. Height="28"
  39. FontFamily="Segoe UI"
  40. FontSize="20"
  41. FontStyle="Normal"
  42. FontWeight="SemiBold"
  43. Text="{Binding CodeTypeName}" />
  44. <TextBlock
  45. Width="162"
  46. Height="22"
  47. Margin="0,32,0,0"
  48. HorizontalAlignment="Left"
  49. FontFamily="Segoe UI"
  50. FontSize="14"
  51. FontStyle="Normal"
  52. Text="{Binding Text_vcode}" />
  53. <WrapPanel Margin="0,8,0,0" HorizontalAlignment="Left">
  54. <Grid>
  55. <TextBox
  56. x:Name="text_Code1"
  57. Width="36"
  58. Height="42"
  59. Padding="10,0,10,0"
  60. HorizontalAlignment="Right"
  61. VerticalContentAlignment="Center"
  62. Effect="{StaticResource shadow.blue-0-4}"
  63. FontFamily="Segoe UI"
  64. FontSize="20"
  65. FontStyle="Normal"
  66. FontWeight="SemiBold"
  67. InputMethod.IsInputMethodEnabled="False"
  68. KeyUp="text_Code1_KeyUp"
  69. PreviewTextInput="TextBox_PreviewTextInput"
  70. Text="{Binding Code1, Mode=TwoWay}"
  71. TextChanged="Code_TextChanged" />
  72. <Border
  73. BorderBrush="#F3465B"
  74. BorderThickness="1"
  75. Effect="{StaticResource shadow.red-0-4}"
  76. Visibility="{Binding ElementName=Grid_RegisterVis, Path=Visibility}" />
  77. </Grid>
  78. <Grid Margin="16,0,0,0">
  79. <TextBox
  80. x:Name="text_Code2"
  81. Width="36"
  82. Height="42"
  83. Padding="10,0,10,0"
  84. HorizontalAlignment="Right"
  85. VerticalContentAlignment="Center"
  86. Effect="{StaticResource shadow.blue-0-4}"
  87. FontFamily="Segoe UI"
  88. FontSize="20"
  89. FontStyle="Normal"
  90. FontWeight="SemiBold"
  91. InputMethod.IsInputMethodEnabled="False"
  92. KeyUp="text_Code2_KeyUp"
  93. PreviewTextInput="TextBox_PreviewTextInput"
  94. Text="{Binding Code2, Mode=TwoWay}"
  95. TextChanged="text_Code2_TextChanged" />
  96. <Border
  97. BorderBrush="#F3465B"
  98. BorderThickness="1"
  99. Effect="{StaticResource shadow.red-0-4}"
  100. Visibility="{Binding ElementName=Grid_RegisterVis, Path=Visibility}" />
  101. </Grid>
  102. <Grid Margin="16,0,0,0">
  103. <TextBox
  104. x:Name="text_Code3"
  105. Width="36"
  106. Height="42"
  107. Padding="10,0,10,0"
  108. HorizontalAlignment="Right"
  109. VerticalContentAlignment="Center"
  110. Effect="{StaticResource shadow.blue-0-4}"
  111. FontFamily="Segoe UI"
  112. FontSize="20"
  113. FontStyle="Normal"
  114. FontWeight="SemiBold"
  115. InputMethod.IsInputMethodEnabled="False"
  116. KeyUp="text_Code3_KeyUp"
  117. PreviewTextInput="TextBox_PreviewTextInput"
  118. Text="{Binding Code3, Mode=TwoWay}"
  119. TextChanged="text_Code3_TextChanged" />
  120. <Border
  121. BorderBrush="#F3465B"
  122. BorderThickness="1"
  123. Effect="{StaticResource shadow.red-0-4}"
  124. Visibility="{Binding ElementName=Grid_RegisterVis, Path=Visibility}" />
  125. </Grid>
  126. <Grid Margin="16,0,0,0">
  127. <TextBox
  128. x:Name="text_Code4"
  129. Width="36"
  130. Height="42"
  131. Padding="10,0,10,0"
  132. HorizontalAlignment="Right"
  133. VerticalContentAlignment="Center"
  134. Effect="{StaticResource shadow.blue-0-4}"
  135. FontFamily="Segoe UI"
  136. FontSize="20"
  137. FontStyle="Normal"
  138. FontWeight="SemiBold"
  139. InputMethod.IsInputMethodEnabled="False"
  140. KeyUp="text_Code4_KeyUp"
  141. PreviewTextInput="TextBox_PreviewTextInput"
  142. Text="{Binding Code4, Mode=TwoWay}"
  143. TextChanged="text_Code4_TextChanged" />
  144. <Border
  145. BorderBrush="#F3465B"
  146. BorderThickness="1"
  147. Effect="{StaticResource shadow.red-0-4}"
  148. Visibility="{Binding ElementName=Grid_RegisterVis, Path=Visibility}" />
  149. </Grid>
  150. <Grid Margin="16,0,0,0">
  151. <TextBox
  152. x:Name="text_Code5"
  153. Width="36"
  154. Height="42"
  155. Padding="10,0,10,0"
  156. HorizontalAlignment="Right"
  157. VerticalContentAlignment="Center"
  158. Effect="{StaticResource shadow.blue-0-4}"
  159. FontFamily="Segoe UI"
  160. FontSize="20"
  161. FontStyle="Normal"
  162. FontWeight="SemiBold"
  163. InputMethod.IsInputMethodEnabled="False"
  164. KeyUp="text_Code5_KeyUp"
  165. PreviewTextInput="TextBox_PreviewTextInput"
  166. Text="{Binding Code5, Mode=TwoWay}"
  167. TextChanged="text_Code5_TextChanged" />
  168. <Border
  169. BorderBrush="#F3465B"
  170. BorderThickness="1"
  171. Effect="{StaticResource shadow.red-0-4}"
  172. Visibility="{Binding ElementName=Grid_RegisterVis, Path=Visibility}" />
  173. </Grid>
  174. <Grid Margin="16,0,0,0">
  175. <TextBox
  176. x:Name="text_Code6"
  177. Width="36"
  178. Height="42"
  179. Padding="10,0,10,0"
  180. HorizontalAlignment="Right"
  181. VerticalContentAlignment="Center"
  182. Effect="{StaticResource shadow.blue-0-4}"
  183. FontFamily="Segoe UI"
  184. FontSize="20"
  185. FontStyle="Normal"
  186. FontWeight="SemiBold"
  187. InputMethod.IsInputMethodEnabled="False"
  188. KeyUp="text_Code6_KeyUp"
  189. PreviewTextInput="TextBox_PreviewTextInput"
  190. Text="{Binding Code6, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  191. TextChanged="text_Code6_TextChanged">
  192. <i:Interaction.Triggers>
  193. <i:EventTrigger EventName="TextChanged">
  194. <i:InvokeCommandAction Command="{Binding Code6ChangedCommand}" />
  195. </i:EventTrigger>
  196. </i:Interaction.Triggers>
  197. </TextBox>
  198. <Border
  199. BorderBrush="#F3465B"
  200. BorderThickness="1"
  201. Effect="{StaticResource shadow.red-0-4}"
  202. Visibility="{Binding ElementName=Grid_RegisterVis, Path=Visibility}" />
  203. </Grid>
  204. </WrapPanel>
  205. <WrapPanel Margin="0,10,0,0">
  206. <TextBlock
  207. Width="190"
  208. Height="20"
  209. HorizontalAlignment="Left"
  210. VerticalAlignment="Top"
  211. FontFamily="Segoe UI"
  212. FontSize="12"
  213. FontStyle="Normal"
  214. Text="{Binding Text_novcode}" />
  215. <TextBlock
  216. Width="Auto"
  217. Height="20"
  218. HorizontalAlignment="Left"
  219. VerticalAlignment="Top"
  220. FontFamily="Segoe UI"
  221. FontSize="12"
  222. FontStyle="Normal"
  223. Foreground="#1770F4"
  224. LineHeight="20"
  225. Text="{Binding Codetime}" />
  226. <TextBlock
  227. FontFamily="Segoe UI"
  228. FontSize="12"
  229. FontStyle="Normal"
  230. Foreground="#1770F4"
  231. LineHeight="20"
  232. Visibility="{Binding Codeagin, Mode=TwoWay}">
  233. <Hyperlink Command="{Binding CodetooCommand}">
  234. <TextBlock Text="{Binding Text_recode}" />
  235. </Hyperlink>
  236. </TextBlock>
  237. </WrapPanel>
  238. </StackPanel>
  239. </Grid>
  240. <Grid
  241. Width="304"
  242. Margin="0,240,0,0"
  243. HorizontalAlignment="Center"
  244. VerticalAlignment="Top">
  245. <StackPanel>
  246. <Button
  247. x:Name="Btn_RegisterNext"
  248. Width="304"
  249. Height="32"
  250. HorizontalAlignment="Left"
  251. VerticalAlignment="Top"
  252. Command="{Binding RegisterNextCommand}"
  253. Content="{Binding CodeTypeName}"
  254. IsDefault="True"
  255. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  256. Style="{StaticResource Btn.cta}" />
  257. <TextBlock
  258. Width="114"
  259. Height="20"
  260. Margin="0,10,0,0"
  261. HorizontalAlignment="Center"
  262. VerticalAlignment="Top"
  263. FontFamily="Segoe UI"
  264. FontSize="12"
  265. FontStyle="Normal"
  266. Foreground="#1770F4"
  267. LineHeight="20">
  268. <Hyperlink Command="{Binding BackRegisterLastCommand}">
  269. <TextBlock Text="{Binding Text_back}" />
  270. </Hyperlink>
  271. </TextBlock>
  272. </StackPanel>
  273. </Grid>
  274. <Grid
  275. x:Name="Grid_RegisterVis"
  276. Width="404"
  277. Height="48"
  278. VerticalAlignment="Bottom"
  279. Background="{Binding BottomBackgroubd}"
  280. Visibility="{Binding RegisterCodemsgVis, Mode=TwoWay}">
  281. <WrapPanel HorizontalAlignment="Left" VerticalAlignment="Center" Margin="9,0,0,0">
  282. <Border
  283. Width="14"
  284. Height="14"
  285. Margin="-1,-4,0,0"
  286. Background="{Binding Bordcolor}"
  287. CornerRadius="100">
  288. <Path
  289. Margin="-1,-4,0,0"
  290. Data="M7.25 8V13H8.75V8H7.25ZM7.25 14.5V16H8.75L8.75 14.5H7.25Z"
  291. Fill="White" />
  292. </Border>
  293. <TextBlock
  294. Margin="9,0,0,0"
  295. HorizontalAlignment="Center"
  296. VerticalAlignment="Center"
  297. FontFamily="Segoe UI"
  298. FontSize="12"
  299. FontStyle="Normal"
  300. LineHeight="22"
  301. Text="{Binding RegisterCodemsg, Mode=TwoWay}"
  302. TextAlignment="Center"
  303. TextWrapping="Wrap" />
  304. </WrapPanel>
  305. </Grid>
  306. </Grid>
  307. </UserControl>