PasswordUpdataRegion.xaml 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565
  1. <UserControl
  2. x:Class="PDF_Master.Views.Dialog.ServiceDialog.PasswordUpdataRegion"
  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:help="clr-namespace:PDF_Master.Helper"
  7. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  8. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.ServiceDialog"
  9. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  10. xmlns:prism="http://prismlibrary.com/"
  11. Width="326"
  12. Height="420"
  13. prism:ViewModelLocator.AutoWireViewModel="True"
  14. mc:Ignorable="d">
  15. <UserControl.Resources>
  16. <Style x:Key="EyeCheckbox" TargetType="CheckBox">
  17. <Setter Property="Cursor" Value="Hand" />
  18. <Setter Property="Template">
  19. <Setter.Value>
  20. <ControlTemplate TargetType="{x:Type CheckBox}">
  21. <Grid>
  22. <Border
  23. VerticalAlignment="Center"
  24. Background="Transparent"
  25. BorderBrush="White"
  26. BorderThickness="1"
  27. CornerRadius="0">
  28. <Grid
  29. Name="Grid"
  30. Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
  31. Height="{TemplateBinding Height}">
  32. <Path
  33. Name="Path"
  34. Data="M1.46967 1.5304L13.4699 13.5304L14.5306 12.4697L2.53032 0.469727L1.46967 1.5304ZM9.99623 11.1174L11.1401 12.2613C10.176 12.7137 9.11463 13.0001 8 13.0001C3.58172 13.0001 0 8.50006 0 7.00006C0 6.2525 0.889611 4.75982 2.32903 3.45038L3.39107 4.5124L3.35064 4.54885C2.71795 5.12245 2.22043 5.72507 1.89225 6.23808C1.62112 6.66189 1.53702 6.91174 1.51122 6.98839L1.50727 7.00006L1.51122 7.01173C1.53702 7.08838 1.62112 7.33823 1.89225 7.76205C2.22043 8.27505 2.71795 8.87768 3.35064 9.45128C4.63846 10.6188 6.29481 11.5001 8 11.5001C8.67993 11.5001 9.3521 11.3599 9.99623 11.1174ZM8 1.00006C6.88543 1.00006 5.82409 1.28643 4.86006 1.73876L6.00394 2.88262C6.64802 2.64015 7.32013 2.50006 8 2.50006C9.70519 2.50006 11.3615 3.3813 12.6494 4.54885C13.2821 5.12245 13.7796 5.72507 14.1078 6.23808C14.3789 6.66189 14.463 6.91174 14.4888 6.98839L14.4927 7.00006L14.4888 7.01173C14.463 7.08838 14.3789 7.33823 14.1078 7.76205C13.7796 8.27505 13.2821 8.87768 12.6494 9.45128L12.6091 9.48762L13.6711 10.5496C15.1104 9.24022 16 7.7476 16 7.00006C16 5.50006 12.4183 1.00006 8 1.00006ZM5 7.00006C5 6.7313 5.03534 6.47079 5.10163 6.22293L6.92836 8.04962C6.93565 8.05707 6.94301 8.06444 6.95046 8.07172L8.77718 9.89842C8.52931 9.96472 8.26878 10.0001 8 10.0001C6.34315 10.0001 5 8.65692 5 7.00006ZM7.223 4.10166L10.8984 7.77701C10.9647 7.5292 11 7.26876 11 7.00006C11 5.34321 9.65685 4.00006 8 4.00006C7.73128 4.00006 7.47082 4.03539 7.223 4.10166Z"
  35. Fill="#616469"
  36. SnapsToDevicePixels="False" />
  37. </Grid>
  38. </Border>
  39. </Grid>
  40. <ControlTemplate.Triggers>
  41. <Trigger Property="IsChecked" Value="True">
  42. <Setter TargetName="Path" Property="Data" Value="M14.4888 7.98833L14.4927 8L14.4888 8.01167C14.463 8.08832 14.3789 8.33817 14.1078 8.76198C13.7796 9.27499 13.2821 9.87762 12.6494 10.4512C11.3615 11.6188 9.70519 12.5 8 12.5C6.29481 12.5 4.63846 11.6188 3.35064 10.4512C2.71795 9.87762 2.22043 9.27499 1.89225 8.76198C1.62112 8.33817 1.53702 8.08832 1.51122 8.01167L1.50727 8L1.51122 7.98833C1.53702 7.91168 1.62112 7.66183 1.89225 7.23802C2.22043 6.72501 2.71795 6.12238 3.35064 5.54879C4.63846 4.38124 6.29481 3.5 8 3.5C9.70519 3.5 11.3615 4.38124 12.6494 5.54879C13.2821 6.12238 13.7796 6.72501 14.1078 7.23802C14.3789 7.66183 14.463 7.91168 14.4888 7.98833ZM16 8C16 9.5 12.4183 14 8 14C3.58172 14 0 9.5 0 8C0 6.5 3.58172 2 8 2C12.4183 2 16 6.5 16 8ZM9.5 8C9.5 8.82843 8.82843 9.5 8 9.5C7.17157 9.5 6.5 8.82843 6.5 8C6.5 7.17157 7.17157 6.5 8 6.5C8.82843 6.5 9.5 7.17157 9.5 8ZM11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z" />
  43. </Trigger>
  44. <Trigger Property="IsChecked" Value="False">
  45. <Setter TargetName="Path" Property="Data" Value="M1.46967 1.5304L13.4699 13.5304L14.5306 12.4697L2.53032 0.469727L1.46967 1.5304ZM9.99623 11.1174L11.1401 12.2613C10.176 12.7137 9.11463 13.0001 8 13.0001C3.58172 13.0001 0 8.50006 0 7.00006C0 6.2525 0.889611 4.75982 2.32903 3.45038L3.39107 4.5124L3.35064 4.54885C2.71795 5.12245 2.22043 5.72507 1.89225 6.23808C1.62112 6.66189 1.53702 6.91174 1.51122 6.98839L1.50727 7.00006L1.51122 7.01173C1.53702 7.08838 1.62112 7.33823 1.89225 7.76205C2.22043 8.27505 2.71795 8.87768 3.35064 9.45128C4.63846 10.6188 6.29481 11.5001 8 11.5001C8.67993 11.5001 9.3521 11.3599 9.99623 11.1174ZM8 1.00006C6.88543 1.00006 5.82409 1.28643 4.86006 1.73876L6.00394 2.88262C6.64802 2.64015 7.32013 2.50006 8 2.50006C9.70519 2.50006 11.3615 3.3813 12.6494 4.54885C13.2821 5.12245 13.7796 5.72507 14.1078 6.23808C14.3789 6.66189 14.463 6.91174 14.4888 6.98839L14.4927 7.00006L14.4888 7.01173C14.463 7.08838 14.3789 7.33823 14.1078 7.76205C13.7796 8.27505 13.2821 8.87768 12.6494 9.45128L12.6091 9.48762L13.6711 10.5496C15.1104 9.24022 16 7.7476 16 7.00006C16 5.50006 12.4183 1.00006 8 1.00006ZM5 7.00006C5 6.7313 5.03534 6.47079 5.10163 6.22293L6.92836 8.04962C6.93565 8.05707 6.94301 8.06444 6.95046 8.07172L8.77718 9.89842C8.52931 9.96472 8.26878 10.0001 8 10.0001C6.34315 10.0001 5 8.65692 5 7.00006ZM7.223 4.10166L10.8984 7.77701C10.9647 7.5292 11 7.26876 11 7.00006C11 5.34321 9.65685 4.00006 8 4.00006C7.73128 4.00006 7.47082 4.03539 7.223 4.10166Z" />
  46. </Trigger>
  47. </ControlTemplate.Triggers>
  48. </ControlTemplate>
  49. </Setter.Value>
  50. </Setter>
  51. </Style>
  52. <Style x:Key="LoginPasswordBoxStyle" TargetType="PasswordBox">
  53. <Setter Property="Height" Value="32" />
  54. <Setter Property="FontSize" Value="14" />
  55. <Setter Property="Template">
  56. <Setter.Value>
  57. <ControlTemplate TargetType="PasswordBox">
  58. <Border
  59. x:Name="border"
  60. Background="{TemplateBinding Background}"
  61. BorderBrush="{TemplateBinding BorderBrush}"
  62. BorderThickness="{TemplateBinding BorderThickness}"
  63. CornerRadius="4"
  64. SnapsToDevicePixels="True">
  65. <Grid>
  66. <Grid.ColumnDefinitions>
  67. <ColumnDefinition />
  68. <ColumnDefinition Width="24" />
  69. </Grid.ColumnDefinitions>
  70. <Grid Grid.Column="0">
  71. <TextBlock
  72. Name="markText"
  73. Grid.Column="1"
  74. VerticalAlignment="Center"
  75. FontSize="12"
  76. Foreground="#BBB"
  77. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  78. Visibility="Collapsed" />
  79. <ScrollViewer
  80. x:Name="PART_ContentHost"
  81. MinHeight="20"
  82. VerticalAlignment="Center"
  83. Focusable="false"
  84. HorizontalScrollBarVisibility="Hidden"
  85. VerticalScrollBarVisibility="Hidden" />
  86. </Grid>
  87. </Grid>
  88. </Border>
  89. <ControlTemplate.Triggers>
  90. <Trigger Property="IsEnabled" Value="false">
  91. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  92. </Trigger>
  93. <Trigger Property="IsMouseOver" Value="true">
  94. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  95. </Trigger>
  96. <Trigger Property="IsKeyboardFocused" Value="true">
  97. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  98. </Trigger>
  99. <DataTrigger Binding="{Binding Path=LoginPassword}" Value="">
  100. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  101. </DataTrigger>
  102. </ControlTemplate.Triggers>
  103. </ControlTemplate>
  104. </Setter.Value>
  105. </Setter>
  106. </Style>
  107. <Style x:Key="LoginPasswordBoxStyle2" TargetType="PasswordBox">
  108. <Setter Property="Height" Value="32" />
  109. <Setter Property="FontSize" Value="14" />
  110. <Setter Property="Template">
  111. <Setter.Value>
  112. <ControlTemplate TargetType="PasswordBox">
  113. <Border
  114. x:Name="border"
  115. Background="{TemplateBinding Background}"
  116. BorderBrush="{TemplateBinding BorderBrush}"
  117. BorderThickness="{TemplateBinding BorderThickness}"
  118. CornerRadius="4"
  119. SnapsToDevicePixels="True">
  120. <Grid>
  121. <Grid.ColumnDefinitions>
  122. <ColumnDefinition />
  123. <ColumnDefinition Width="24" />
  124. </Grid.ColumnDefinitions>
  125. <Grid Grid.Column="0">
  126. <TextBlock
  127. Name="markText"
  128. Grid.Column="1"
  129. VerticalAlignment="Center"
  130. FontSize="12"
  131. Foreground="#BBB"
  132. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  133. Visibility="Collapsed" />
  134. <ScrollViewer
  135. x:Name="PART_ContentHost"
  136. MinHeight="20"
  137. VerticalAlignment="Center"
  138. Focusable="false"
  139. HorizontalScrollBarVisibility="Hidden"
  140. VerticalScrollBarVisibility="Hidden" />
  141. </Grid>
  142. </Grid>
  143. </Border>
  144. <ControlTemplate.Triggers>
  145. <Trigger Property="IsEnabled" Value="false">
  146. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  147. </Trigger>
  148. <Trigger Property="IsMouseOver" Value="true">
  149. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  150. </Trigger>
  151. <Trigger Property="IsKeyboardFocused" Value="true">
  152. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  153. </Trigger>
  154. <DataTrigger Binding="{Binding Path=LoginPassword2}" Value="">
  155. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  156. </DataTrigger>
  157. </ControlTemplate.Triggers>
  158. </ControlTemplate>
  159. </Setter.Value>
  160. </Setter>
  161. </Style>
  162. <Style x:Key="LoginEmailBoxStyle" TargetType="PasswordBox">
  163. <Setter Property="Height" Value="32" />
  164. <Setter Property="FontSize" Value="14" />
  165. <Setter Property="Template">
  166. <Setter.Value>
  167. <ControlTemplate TargetType="PasswordBox">
  168. <Border
  169. x:Name="border"
  170. Background="{TemplateBinding Background}"
  171. BorderBrush="{TemplateBinding BorderBrush}"
  172. BorderThickness="{TemplateBinding BorderThickness}"
  173. CornerRadius="4"
  174. SnapsToDevicePixels="True">
  175. <Grid>
  176. <Grid.ColumnDefinitions>
  177. <ColumnDefinition />
  178. <ColumnDefinition Width="24" />
  179. </Grid.ColumnDefinitions>
  180. <Grid Grid.Column="0">
  181. <TextBlock
  182. Name="markText"
  183. Grid.Column="1"
  184. VerticalAlignment="Center"
  185. FontSize="12"
  186. Foreground="#BBB"
  187. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  188. Visibility="Collapsed" />
  189. <ScrollViewer
  190. x:Name="PART_ContentHost"
  191. MinHeight="20"
  192. VerticalAlignment="Center"
  193. Focusable="false"
  194. HorizontalScrollBarVisibility="Hidden"
  195. VerticalScrollBarVisibility="Hidden" />
  196. </Grid>
  197. </Grid>
  198. </Border>
  199. <ControlTemplate.Triggers>
  200. <Trigger Property="IsEnabled" Value="false">
  201. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  202. </Trigger>
  203. <Trigger Property="IsMouseOver" Value="true">
  204. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  205. </Trigger>
  206. <Trigger Property="IsKeyboardFocused" Value="true">
  207. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  208. </Trigger>
  209. <DataTrigger Binding="{Binding Path=LoginPassword}" Value="">
  210. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  211. </DataTrigger>
  212. </ControlTemplate.Triggers>
  213. </ControlTemplate>
  214. </Setter.Value>
  215. </Setter>
  216. </Style>
  217. <Style x:Key="LoginPasswordTextBoxStyle" TargetType="TextBox">
  218. <Setter Property="Height" Value="32" />
  219. <Setter Property="FontSize" Value="14" />
  220. <Setter Property="Template">
  221. <Setter.Value>
  222. <ControlTemplate TargetType="TextBox">
  223. <Border
  224. x:Name="border"
  225. Background="{TemplateBinding Background}"
  226. BorderBrush="{TemplateBinding BorderBrush}"
  227. BorderThickness="{TemplateBinding BorderThickness}"
  228. CornerRadius="5"
  229. SnapsToDevicePixels="True">
  230. <Grid>
  231. <Grid.ColumnDefinitions>
  232. <ColumnDefinition />
  233. <ColumnDefinition Width="24" />
  234. </Grid.ColumnDefinitions>
  235. <Grid Grid.Column="0">
  236. <TextBlock
  237. Name="markText"
  238. Grid.Column="1"
  239. VerticalAlignment="Center"
  240. FontSize="12"
  241. Foreground="#BBB"
  242. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  243. Visibility="Collapsed" />
  244. <ScrollViewer
  245. x:Name="PART_ContentHost"
  246. MinHeight="20"
  247. VerticalAlignment="Center"
  248. Focusable="false"
  249. HorizontalScrollBarVisibility="Hidden"
  250. VerticalScrollBarVisibility="Hidden" />
  251. </Grid>
  252. </Grid>
  253. </Border>
  254. <ControlTemplate.Triggers>
  255. <Trigger Property="IsEnabled" Value="false">
  256. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  257. </Trigger>
  258. <Trigger Property="IsMouseOver" Value="true">
  259. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  260. </Trigger>
  261. <Trigger Property="IsKeyboardFocused" Value="true">
  262. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  263. </Trigger>
  264. <DataTrigger Binding="{Binding Path=LoginPassword}" Value="">
  265. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  266. </DataTrigger>
  267. </ControlTemplate.Triggers>
  268. </ControlTemplate>
  269. </Setter.Value>
  270. </Setter>
  271. </Style>
  272. <Style x:Key="LoginPasswordTextBoxStyle2" TargetType="TextBox">
  273. <Setter Property="Height" Value="32" />
  274. <Setter Property="FontSize" Value="14" />
  275. <Setter Property="Template">
  276. <Setter.Value>
  277. <ControlTemplate TargetType="TextBox">
  278. <Border
  279. x:Name="border"
  280. Background="{TemplateBinding Background}"
  281. BorderBrush="{TemplateBinding BorderBrush}"
  282. BorderThickness="{TemplateBinding BorderThickness}"
  283. CornerRadius="5"
  284. SnapsToDevicePixels="True">
  285. <Grid>
  286. <Grid.ColumnDefinitions>
  287. <ColumnDefinition />
  288. <ColumnDefinition Width="24" />
  289. </Grid.ColumnDefinitions>
  290. <Grid Grid.Column="0">
  291. <TextBlock
  292. Name="markText"
  293. Grid.Column="1"
  294. VerticalAlignment="Center"
  295. FontSize="12"
  296. Foreground="#BBB"
  297. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  298. Visibility="Collapsed" />
  299. <ScrollViewer
  300. x:Name="PART_ContentHost"
  301. MinHeight="20"
  302. VerticalAlignment="Center"
  303. Focusable="false"
  304. HorizontalScrollBarVisibility="Hidden"
  305. VerticalScrollBarVisibility="Hidden" />
  306. </Grid>
  307. </Grid>
  308. </Border>
  309. <ControlTemplate.Triggers>
  310. <Trigger Property="IsEnabled" Value="false">
  311. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  312. </Trigger>
  313. <Trigger Property="IsMouseOver" Value="true">
  314. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  315. </Trigger>
  316. <Trigger Property="IsKeyboardFocused" Value="true">
  317. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  318. </Trigger>
  319. <DataTrigger Binding="{Binding Path=LoginPassword2}" Value="">
  320. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  321. </DataTrigger>
  322. </ControlTemplate.Triggers>
  323. </ControlTemplate>
  324. </Setter.Value>
  325. </Setter>
  326. </Style>
  327. <Style x:Key="LoginEmailTextBoxStyle" TargetType="TextBox">
  328. <Setter Property="Height" Value="32" />
  329. <Setter Property="FontSize" Value="14" />
  330. <Setter Property="Template">
  331. <Setter.Value>
  332. <ControlTemplate TargetType="TextBox">
  333. <Border
  334. x:Name="border"
  335. Background="{TemplateBinding Background}"
  336. BorderBrush="{TemplateBinding BorderBrush}"
  337. BorderThickness="{TemplateBinding BorderThickness}"
  338. CornerRadius="4"
  339. SnapsToDevicePixels="True">
  340. <Grid>
  341. <Grid.ColumnDefinitions>
  342. <ColumnDefinition />
  343. <ColumnDefinition Width="24" />
  344. </Grid.ColumnDefinitions>
  345. <Grid Grid.Column="0">
  346. <TextBlock
  347. Name="markText"
  348. Grid.Column="1"
  349. VerticalAlignment="Center"
  350. FontSize="12"
  351. Foreground="#BBB"
  352. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  353. Visibility="Collapsed" />
  354. <ScrollViewer
  355. x:Name="PART_ContentHost"
  356. MinHeight="20"
  357. VerticalAlignment="Center"
  358. Focusable="false"
  359. HorizontalScrollBarVisibility="Hidden"
  360. VerticalScrollBarVisibility="Hidden" />
  361. </Grid>
  362. </Grid>
  363. </Border>
  364. <ControlTemplate.Triggers>
  365. <Trigger Property="IsEnabled" Value="false">
  366. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  367. </Trigger>
  368. <Trigger Property="IsMouseOver" Value="true">
  369. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  370. </Trigger>
  371. <Trigger Property="IsKeyboardFocused" Value="true">
  372. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  373. </Trigger>
  374. <DataTrigger Binding="{Binding Path=LoginEmail}" Value="">
  375. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  376. </DataTrigger>
  377. </ControlTemplate.Triggers>
  378. </ControlTemplate>
  379. </Setter.Value>
  380. </Setter>
  381. </Style>
  382. </UserControl.Resources>
  383. <Grid Background="White">
  384. <Button
  385. Width="46"
  386. Height="32"
  387. Margin="8"
  388. HorizontalAlignment="Right"
  389. VerticalAlignment="Top"
  390. Background="Transparent"
  391. IsCancel="True"
  392. Style="{StaticResource CloseBtn}"
  393. WindowChrome.IsHitTestVisibleInChrome="True">
  394. <Path
  395. Width="46"
  396. Height="32"
  397. 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"
  398. Fill="Black" />
  399. </Button>
  400. <Grid
  401. Width="262"
  402. Margin="0,48,0,0"
  403. HorizontalAlignment="Center"
  404. VerticalAlignment="Top">
  405. <StackPanel>
  406. <TextBlock
  407. Height="28"
  408. HorizontalAlignment="Left"
  409. VerticalAlignment="Top"
  410. FontFamily="Segoe UI"
  411. FontSize="20"
  412. FontStyle="Normal"
  413. FontWeight="SemiBold"
  414. Text="Reset password" />
  415. <Grid
  416. Width="262"
  417. Height="32"
  418. Margin="0,32,0,0"
  419. VerticalAlignment="Center">
  420. <Grid.ColumnDefinitions>
  421. <ColumnDefinition />
  422. <ColumnDefinition Width="24" />
  423. </Grid.ColumnDefinitions>
  424. <PasswordBox
  425. x:Name="Text_RePassword2"
  426. Grid.ColumnSpan="2"
  427. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg2, Mode=TwoWay}"
  428. help:PasswordBoxHelper.Password="{Binding LoginPassword2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  429. InputMethod.IsInputMethodEnabled="False"
  430. PreviewTextInput="TextBox_PreviewTextInput"
  431. Style="{StaticResource LoginPasswordBoxStyle2}"
  432. Visibility="{Binding LoginPasswordVisibility2, Mode=TwoWay}" />
  433. <TextBox
  434. Grid.ColumnSpan="2"
  435. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg2, Mode=TwoWay}"
  436. InputMethod.IsInputMethodEnabled="False"
  437. PreviewTextInput="TextBox_PreviewTextInput"
  438. Style="{StaticResource LoginPasswordTextBoxStyle2}"
  439. Text="{Binding LoginPassword2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  440. Visibility="{Binding LoginTextVisibility2, Mode=TwoWay}">
  441. <i:Interaction.Triggers>
  442. <i:EventTrigger EventName="TextChanged">
  443. <i:InvokeCommandAction Command="{Binding LoginPasswordChanged2Command}" />
  444. </i:EventTrigger>
  445. </i:Interaction.Triggers>
  446. </TextBox>
  447. <CheckBox
  448. x:Name="DisplayLoginPasswordChk2"
  449. Grid.Column="1"
  450. Height="16"
  451. HorizontalAlignment="Left"
  452. Panel.ZIndex="1"
  453. Command="{Binding DisplayPasswordCommand2}"
  454. CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
  455. Style="{StaticResource EyeCheckbox}"
  456. Visibility="{Binding ChkVis2}" />
  457. </Grid>
  458. <TextBlock
  459. Grid.ColumnSpan="2"
  460. Width="262"
  461. Height="20"
  462. Margin="0,2,0,0"
  463. Foreground="#F3465B"
  464. Text="{Binding LoginPasswordlook2, Mode=TwoWay}" />
  465. <Grid
  466. Width="262"
  467. Height="32"
  468. Margin="0,8,0,0">
  469. <Grid.ColumnDefinitions>
  470. <ColumnDefinition />
  471. <ColumnDefinition Width="24" />
  472. </Grid.ColumnDefinitions>
  473. <PasswordBox
  474. Grid.ColumnSpan="2"
  475. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg, Mode=TwoWay}"
  476. help:PasswordBoxHelper.Password="{Binding LoginPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  477. InputMethod.IsInputMethodEnabled="False"
  478. PreviewTextInput="TextBox_PreviewTextInput"
  479. Style="{StaticResource LoginPasswordBoxStyle}"
  480. Visibility="{Binding LoginPasswordVisibility, Mode=TwoWay}" />
  481. <TextBox
  482. Grid.ColumnSpan="2"
  483. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg, Mode=TwoWay}"
  484. InputMethod.IsInputMethodEnabled="False"
  485. PreviewTextInput="TextBox_PreviewTextInput"
  486. Style="{StaticResource LoginPasswordTextBoxStyle}"
  487. Text="{Binding LoginPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  488. Visibility="{Binding LoginTextVisibility, Mode=TwoWay}">
  489. <i:Interaction.Triggers>
  490. <i:EventTrigger EventName="TextChanged">
  491. <i:InvokeCommandAction Command="{Binding LoginPasswordChangedCommand}" />
  492. </i:EventTrigger>
  493. </i:Interaction.Triggers>
  494. </TextBox>
  495. <CheckBox
  496. x:Name="DisplayLoginPasswordChk"
  497. Grid.Column="1"
  498. Height="16"
  499. HorizontalAlignment="Left"
  500. Panel.ZIndex="1"
  501. Command="{Binding DisplayPasswordCommand}"
  502. CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
  503. Style="{StaticResource EyeCheckbox}"
  504. Visibility="{Binding ChkVis}" />
  505. </Grid>
  506. <TextBlock
  507. Width="262"
  508. Height="20"
  509. Margin="0,4,0,0"
  510. Foreground="#F3465B"
  511. Text="{Binding LoginPasswordlook, Mode=TwoWay}" />
  512. <Button
  513. Width="262"
  514. Height="32"
  515. Margin="0,16,0,0"
  516. Command="{Binding PasswordUpdataCommand}"
  517. Content="OK"
  518. IsDefault="True"
  519. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  520. Style="{StaticResource Btn.cta}" />
  521. </StackPanel>
  522. </Grid>
  523. <Grid
  524. Width="326"
  525. Height="82"
  526. VerticalAlignment="Bottom"
  527. Background="#FDC7C6"
  528. Visibility="{Binding PasswordUpdatalookVis}">
  529. <WrapPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  530. <Border
  531. Width="14"
  532. Height="14"
  533. Margin="-1,-4,0,0"
  534. Background="#F3465B"
  535. CornerRadius="100">
  536. <Path
  537. Margin="-1,-4,0,0"
  538. Data="M7.25 8V13H8.75V8H7.25ZM7.25 14.5V16H8.75L8.75 14.5H7.25Z"
  539. Fill="White" />
  540. </Border>
  541. <TextBlock
  542. HorizontalAlignment="Center"
  543. VerticalAlignment="Center"
  544. FontFamily="Segoe UI"
  545. FontSize="12"
  546. FontStyle="Normal"
  547. LineHeight="22"
  548. Text="{Binding PasswordUpdatamsglook}"
  549. TextAlignment="Center"
  550. TextWrapping="Wrap" />
  551. </WrapPanel>
  552. </Grid>
  553. </Grid>
  554. </UserControl>