PasswordUpdataRegion.xaml 37 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610
  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:convert="clr-namespace:PDF_Master.DataConvert"
  6. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  7. xmlns:help="clr-namespace:PDF_Master.Helper"
  8. xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
  9. xmlns:local="clr-namespace:PDF_Master.Views.Dialog.ServiceDialog"
  10. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  11. xmlns:prism="http://prismlibrary.com/"
  12. Width="326"
  13. Height="420"
  14. prism:ViewModelLocator.AutoWireViewModel="True"
  15. mc:Ignorable="d">
  16. <UserControl.Resources>
  17. <convert:LoginBordVis x:Key="LoginBordVis" />
  18. <Style x:Key="EyeCheckbox" TargetType="CheckBox">
  19. <Setter Property="Cursor" Value="Hand" />
  20. <Setter Property="Template">
  21. <Setter.Value>
  22. <ControlTemplate TargetType="{x:Type CheckBox}">
  23. <Grid>
  24. <Border
  25. VerticalAlignment="Center"
  26. Background="Transparent"
  27. BorderBrush="White"
  28. BorderThickness="1"
  29. CornerRadius="0">
  30. <Grid
  31. Name="Grid"
  32. Width="{Binding ActualHeight, RelativeSource={RelativeSource Self}}"
  33. Height="{TemplateBinding Height}">
  34. <Path
  35. Name="Path"
  36. 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"
  37. Fill="#616469"
  38. SnapsToDevicePixels="False" />
  39. </Grid>
  40. </Border>
  41. </Grid>
  42. <ControlTemplate.Triggers>
  43. <Trigger Property="IsChecked" Value="True">
  44. <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" />
  45. </Trigger>
  46. <Trigger Property="IsChecked" Value="False">
  47. <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" />
  48. </Trigger>
  49. </ControlTemplate.Triggers>
  50. </ControlTemplate>
  51. </Setter.Value>
  52. </Setter>
  53. </Style>
  54. <Style x:Key="LoginPasswordBoxStyle" TargetType="PasswordBox">
  55. <Setter Property="Height" Value="32" />
  56. <Setter Property="FontSize" Value="14" />
  57. <Setter Property="Template">
  58. <Setter.Value>
  59. <ControlTemplate TargetType="PasswordBox">
  60. <Border
  61. x:Name="border"
  62. Background="{TemplateBinding Background}"
  63. BorderBrush="{TemplateBinding BorderBrush}"
  64. BorderThickness="{TemplateBinding BorderThickness}"
  65. CornerRadius="4"
  66. SnapsToDevicePixels="True">
  67. <Grid>
  68. <Grid.ColumnDefinitions>
  69. <ColumnDefinition />
  70. <ColumnDefinition Width="24" />
  71. </Grid.ColumnDefinitions>
  72. <Grid Grid.Column="0">
  73. <TextBlock
  74. Name="markText"
  75. Grid.Column="1"
  76. Margin="8,0,0,0"
  77. VerticalAlignment="Center"
  78. FontSize="12"
  79. Foreground="#BBB"
  80. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  81. Visibility="Collapsed" />
  82. <ScrollViewer
  83. x:Name="PART_ContentHost"
  84. MinHeight="20"
  85. Margin="8,0,0,0"
  86. VerticalAlignment="Center"
  87. Focusable="false"
  88. HorizontalScrollBarVisibility="Hidden"
  89. VerticalScrollBarVisibility="Hidden" />
  90. </Grid>
  91. </Grid>
  92. </Border>
  93. <ControlTemplate.Triggers>
  94. <Trigger Property="IsEnabled" Value="false">
  95. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  96. </Trigger>
  97. <Trigger Property="IsMouseOver" Value="true">
  98. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  99. </Trigger>
  100. <Trigger Property="IsKeyboardFocused" Value="true">
  101. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  102. <Setter TargetName="border" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  103. </Trigger>
  104. <DataTrigger Binding="{Binding Path=LoginPassword}" Value="">
  105. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  106. </DataTrigger>
  107. </ControlTemplate.Triggers>
  108. </ControlTemplate>
  109. </Setter.Value>
  110. </Setter>
  111. </Style>
  112. <Style x:Key="LoginPasswordBoxStyle2" TargetType="PasswordBox">
  113. <Setter Property="Height" Value="32" />
  114. <Setter Property="FontSize" Value="14" />
  115. <Setter Property="Template">
  116. <Setter.Value>
  117. <ControlTemplate TargetType="PasswordBox">
  118. <Border
  119. x:Name="border"
  120. Background="{TemplateBinding Background}"
  121. BorderBrush="{TemplateBinding BorderBrush}"
  122. BorderThickness="{TemplateBinding BorderThickness}"
  123. CornerRadius="4"
  124. SnapsToDevicePixels="True">
  125. <Grid>
  126. <Grid.ColumnDefinitions>
  127. <ColumnDefinition />
  128. <ColumnDefinition Width="24" />
  129. </Grid.ColumnDefinitions>
  130. <Grid Grid.Column="0">
  131. <TextBlock
  132. Name="markText"
  133. Grid.Column="1"
  134. Margin="8,0,0,0"
  135. VerticalAlignment="Center"
  136. FontSize="12"
  137. Foreground="#BBB"
  138. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  139. Visibility="Collapsed" />
  140. <ScrollViewer
  141. x:Name="PART_ContentHost"
  142. MinHeight="20"
  143. Margin="8,0,0,0"
  144. VerticalAlignment="Center"
  145. Focusable="false"
  146. HorizontalScrollBarVisibility="Hidden"
  147. VerticalScrollBarVisibility="Hidden" />
  148. </Grid>
  149. </Grid>
  150. </Border>
  151. <ControlTemplate.Triggers>
  152. <Trigger Property="IsEnabled" Value="false">
  153. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  154. </Trigger>
  155. <Trigger Property="IsMouseOver" Value="true">
  156. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  157. </Trigger>
  158. <Trigger Property="IsKeyboardFocused" Value="true">
  159. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  160. <Setter TargetName="border" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  161. </Trigger>
  162. <DataTrigger Binding="{Binding Path=LoginPassword2}" Value="">
  163. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  164. </DataTrigger>
  165. </ControlTemplate.Triggers>
  166. </ControlTemplate>
  167. </Setter.Value>
  168. </Setter>
  169. </Style>
  170. <Style x:Key="LoginEmailBoxStyle" TargetType="PasswordBox">
  171. <Setter Property="Height" Value="32" />
  172. <Setter Property="FontSize" Value="14" />
  173. <Setter Property="Template">
  174. <Setter.Value>
  175. <ControlTemplate TargetType="PasswordBox">
  176. <Border
  177. x:Name="border"
  178. Background="{TemplateBinding Background}"
  179. BorderBrush="{TemplateBinding BorderBrush}"
  180. BorderThickness="{TemplateBinding BorderThickness}"
  181. CornerRadius="4"
  182. SnapsToDevicePixels="True">
  183. <Grid>
  184. <Grid.ColumnDefinitions>
  185. <ColumnDefinition />
  186. <ColumnDefinition Width="24" />
  187. </Grid.ColumnDefinitions>
  188. <Grid Grid.Column="0">
  189. <TextBlock
  190. Name="markText"
  191. Grid.Column="1"
  192. Margin="8,0,0,0"
  193. VerticalAlignment="Center"
  194. FontSize="12"
  195. Foreground="#BBB"
  196. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  197. Visibility="Collapsed" />
  198. <ScrollViewer
  199. x:Name="PART_ContentHost"
  200. MinHeight="20"
  201. Margin="8,0,0,0"
  202. VerticalAlignment="Center"
  203. Focusable="false"
  204. HorizontalScrollBarVisibility="Hidden"
  205. VerticalScrollBarVisibility="Hidden" />
  206. </Grid>
  207. </Grid>
  208. </Border>
  209. <ControlTemplate.Triggers>
  210. <Trigger Property="IsEnabled" Value="false">
  211. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  212. </Trigger>
  213. <Trigger Property="IsMouseOver" Value="true">
  214. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  215. </Trigger>
  216. <Trigger Property="IsKeyboardFocused" Value="true">
  217. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  218. <Setter TargetName="border" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  219. </Trigger>
  220. <DataTrigger Binding="{Binding Path=LoginPassword}" Value="">
  221. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  222. </DataTrigger>
  223. </ControlTemplate.Triggers>
  224. </ControlTemplate>
  225. </Setter.Value>
  226. </Setter>
  227. </Style>
  228. <Style x:Key="LoginPasswordTextBoxStyle" TargetType="TextBox">
  229. <Setter Property="Height" Value="32" />
  230. <Setter Property="FontSize" Value="14" />
  231. <Setter Property="Template">
  232. <Setter.Value>
  233. <ControlTemplate TargetType="TextBox">
  234. <Border
  235. x:Name="border"
  236. Background="{TemplateBinding Background}"
  237. BorderBrush="{TemplateBinding BorderBrush}"
  238. BorderThickness="{TemplateBinding BorderThickness}"
  239. CornerRadius="5"
  240. SnapsToDevicePixels="True">
  241. <Grid>
  242. <Grid.ColumnDefinitions>
  243. <ColumnDefinition />
  244. <ColumnDefinition Width="24" />
  245. </Grid.ColumnDefinitions>
  246. <Grid Grid.Column="0">
  247. <TextBlock
  248. Name="markText"
  249. Grid.Column="1"
  250. Margin="8,0,0,0"
  251. VerticalAlignment="Center"
  252. FontSize="12"
  253. Foreground="#BBB"
  254. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  255. Visibility="Collapsed" />
  256. <ScrollViewer
  257. x:Name="PART_ContentHost"
  258. MinHeight="20"
  259. Margin="8,0,0,0"
  260. VerticalAlignment="Center"
  261. Focusable="false"
  262. HorizontalScrollBarVisibility="Hidden"
  263. VerticalScrollBarVisibility="Hidden" />
  264. </Grid>
  265. </Grid>
  266. </Border>
  267. <ControlTemplate.Triggers>
  268. <Trigger Property="IsEnabled" Value="false">
  269. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  270. </Trigger>
  271. <Trigger Property="IsMouseOver" Value="true">
  272. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  273. </Trigger>
  274. <Trigger Property="IsKeyboardFocused" Value="true">
  275. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  276. <Setter TargetName="border" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  277. </Trigger>
  278. <DataTrigger Binding="{Binding Path=LoginPassword}" Value="">
  279. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  280. </DataTrigger>
  281. </ControlTemplate.Triggers>
  282. </ControlTemplate>
  283. </Setter.Value>
  284. </Setter>
  285. </Style>
  286. <Style x:Key="LoginPasswordTextBoxStyle2" TargetType="TextBox">
  287. <Setter Property="Height" Value="32" />
  288. <Setter Property="FontSize" Value="14" />
  289. <Setter Property="Template">
  290. <Setter.Value>
  291. <ControlTemplate TargetType="TextBox">
  292. <Border
  293. x:Name="border"
  294. Background="{TemplateBinding Background}"
  295. BorderBrush="{TemplateBinding BorderBrush}"
  296. BorderThickness="{TemplateBinding BorderThickness}"
  297. CornerRadius="5"
  298. SnapsToDevicePixels="True">
  299. <Grid>
  300. <Grid.ColumnDefinitions>
  301. <ColumnDefinition />
  302. <ColumnDefinition Width="24" />
  303. </Grid.ColumnDefinitions>
  304. <Grid Grid.Column="0">
  305. <TextBlock
  306. Name="markText"
  307. Grid.Column="1"
  308. Margin="8,0,0,0"
  309. VerticalAlignment="Center"
  310. FontSize="12"
  311. Foreground="#BBB"
  312. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  313. Visibility="Collapsed" />
  314. <ScrollViewer
  315. x:Name="PART_ContentHost"
  316. MinHeight="20"
  317. Margin="8,0,0,0"
  318. VerticalAlignment="Center"
  319. Focusable="false"
  320. HorizontalScrollBarVisibility="Hidden"
  321. VerticalScrollBarVisibility="Hidden" />
  322. </Grid>
  323. </Grid>
  324. </Border>
  325. <ControlTemplate.Triggers>
  326. <Trigger Property="IsEnabled" Value="false">
  327. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  328. </Trigger>
  329. <Trigger Property="IsMouseOver" Value="true">
  330. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  331. </Trigger>
  332. <Trigger Property="IsKeyboardFocused" Value="true">
  333. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  334. <Setter TargetName="border" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  335. </Trigger>
  336. <DataTrigger Binding="{Binding Path=LoginPassword2}" Value="">
  337. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  338. </DataTrigger>
  339. </ControlTemplate.Triggers>
  340. </ControlTemplate>
  341. </Setter.Value>
  342. </Setter>
  343. </Style>
  344. <Style x:Key="LoginEmailTextBoxStyle" TargetType="TextBox">
  345. <Setter Property="Height" Value="32" />
  346. <Setter Property="FontSize" Value="14" />
  347. <Setter Property="Template">
  348. <Setter.Value>
  349. <ControlTemplate TargetType="TextBox">
  350. <Border
  351. x:Name="border"
  352. Background="{TemplateBinding Background}"
  353. BorderBrush="{TemplateBinding BorderBrush}"
  354. BorderThickness="{TemplateBinding BorderThickness}"
  355. CornerRadius="4"
  356. SnapsToDevicePixels="True">
  357. <Grid>
  358. <Grid.ColumnDefinitions>
  359. <ColumnDefinition />
  360. <ColumnDefinition Width="24" />
  361. </Grid.ColumnDefinitions>
  362. <Grid Grid.Column="0">
  363. <TextBlock
  364. Name="markText"
  365. Grid.Column="1"
  366. Margin="8,0,0,0"
  367. VerticalAlignment="Center"
  368. FontSize="12"
  369. Foreground="#BBB"
  370. Text="{TemplateBinding help:PasswordBoxHelper.DisplayText}"
  371. Visibility="Collapsed" />
  372. <ScrollViewer
  373. x:Name="PART_ContentHost"
  374. MinHeight="20"
  375. Margin="8,0,0,0"
  376. VerticalAlignment="Center"
  377. Focusable="false"
  378. HorizontalScrollBarVisibility="Hidden"
  379. VerticalScrollBarVisibility="Hidden" />
  380. </Grid>
  381. </Grid>
  382. </Border>
  383. <ControlTemplate.Triggers>
  384. <Trigger Property="IsEnabled" Value="false">
  385. <Setter TargetName="border" Property="Opacity" Value="0.56" />
  386. </Trigger>
  387. <Trigger Property="IsMouseOver" Value="true">
  388. <Setter TargetName="border" Property="BorderBrush" Value="#FF7EB4EA" />
  389. </Trigger>
  390. <Trigger Property="IsKeyboardFocused" Value="true">
  391. <Setter TargetName="border" Property="BorderBrush" Value="#FF569DE5" />
  392. <Setter TargetName="border" Property="Effect" Value="{StaticResource shadow.blue-0-4}" />
  393. </Trigger>
  394. <DataTrigger Binding="{Binding Path=LoginEmail}" Value="">
  395. <Setter TargetName="markText" Property="Visibility" Value="Visible" />
  396. </DataTrigger>
  397. </ControlTemplate.Triggers>
  398. </ControlTemplate>
  399. </Setter.Value>
  400. </Setter>
  401. </Style>
  402. </UserControl.Resources>
  403. <Grid Background="White">
  404. <Button
  405. Width="46"
  406. Height="32"
  407. Margin="8"
  408. HorizontalAlignment="Right"
  409. VerticalAlignment="Top"
  410. Background="Transparent"
  411. IsCancel="True"
  412. Style="{StaticResource CloseBtn}"
  413. WindowChrome.IsHitTestVisibleInChrome="True">
  414. <Path
  415. Width="46"
  416. Height="32"
  417. 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"
  418. Fill="Black" />
  419. </Button>
  420. <Grid
  421. Width="262"
  422. Margin="0,48,0,0"
  423. HorizontalAlignment="Center"
  424. VerticalAlignment="Top">
  425. <StackPanel>
  426. <TextBlock
  427. Width="Auto"
  428. Height="28"
  429. HorizontalAlignment="Left"
  430. VerticalAlignment="Top"
  431. FontFamily="Segoe UI"
  432. FontSize="20"
  433. FontStyle="Normal"
  434. FontWeight="SemiBold"
  435. Text="{Binding Text_passuodata}" />
  436. <Grid Margin="0,32,0,0">
  437. <Grid
  438. Width="262"
  439. Height="32"
  440. VerticalAlignment="Center">
  441. <Grid.ColumnDefinitions>
  442. <ColumnDefinition />
  443. <ColumnDefinition Width="24" />
  444. </Grid.ColumnDefinitions>
  445. <PasswordBox
  446. x:Name="Text_RePassword2"
  447. Grid.ColumnSpan="2"
  448. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg2, Mode=TwoWay}"
  449. help:PasswordBoxHelper.Password="{Binding LoginPassword2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  450. InputMethod.IsInputMethodEnabled="False"
  451. PreviewTextInput="TextBox_PreviewTextInput"
  452. Style="{StaticResource LoginPasswordBoxStyle2}"
  453. Visibility="{Binding LoginPasswordVisibility2, Mode=TwoWay}" />
  454. <TextBox
  455. Grid.ColumnSpan="2"
  456. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg2, Mode=TwoWay}"
  457. InputMethod.IsInputMethodEnabled="False"
  458. PreviewTextInput="TextBox_PreviewTextInput"
  459. Style="{StaticResource LoginPasswordTextBoxStyle2}"
  460. Text="{Binding LoginPassword2, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  461. Visibility="{Binding LoginTextVisibility2, Mode=TwoWay}">
  462. <i:Interaction.Triggers>
  463. <i:EventTrigger EventName="TextChanged">
  464. <i:InvokeCommandAction Command="{Binding LoginPasswordChanged2Command}" />
  465. </i:EventTrigger>
  466. </i:Interaction.Triggers>
  467. </TextBox>
  468. <CheckBox
  469. x:Name="DisplayLoginPasswordChk2"
  470. Grid.Column="1"
  471. Height="16"
  472. HorizontalAlignment="Left"
  473. Panel.ZIndex="1"
  474. Command="{Binding DisplayPasswordCommand2}"
  475. CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
  476. Style="{StaticResource EyeCheckbox}"
  477. Visibility="{Binding ChkVis2}" />
  478. </Grid>
  479. <Border
  480. BorderBrush="#F3465B"
  481. BorderThickness="1"
  482. CornerRadius="4"
  483. Effect="{StaticResource shadow.red-0-4}"
  484. Visibility="{Binding ElementName=Textbl_pass1, Path=Text, Converter={StaticResource LoginBordVis}}" />
  485. </Grid>
  486. <TextBlock
  487. x:Name="Textbl_pass1"
  488. Grid.ColumnSpan="2"
  489. Width="262"
  490. Height="20"
  491. Margin="0,2,0,0"
  492. Foreground="#F3465B"
  493. Text="{Binding LoginPasswordlook2, Mode=TwoWay}" />
  494. <Grid Margin="0,8,0,0">
  495. <Grid Width="262" Height="32">
  496. <Grid.ColumnDefinitions>
  497. <ColumnDefinition />
  498. <ColumnDefinition Width="24" />
  499. </Grid.ColumnDefinitions>
  500. <PasswordBox
  501. Grid.ColumnSpan="2"
  502. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg, Mode=TwoWay}"
  503. help:PasswordBoxHelper.Password="{Binding LoginPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  504. InputMethod.IsInputMethodEnabled="False"
  505. PreviewTextInput="TextBox_PreviewTextInput"
  506. Style="{StaticResource LoginPasswordBoxStyle}"
  507. Visibility="{Binding LoginPasswordVisibility, Mode=TwoWay}" />
  508. <TextBox
  509. Grid.ColumnSpan="2"
  510. help:PasswordBoxHelper.DisplayText="{Binding LoginPasswordMsg, Mode=TwoWay}"
  511. InputMethod.IsInputMethodEnabled="False"
  512. PreviewTextInput="TextBox_PreviewTextInput"
  513. Style="{StaticResource LoginPasswordTextBoxStyle}"
  514. Text="{Binding LoginPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  515. Visibility="{Binding LoginTextVisibility, Mode=TwoWay}">
  516. <i:Interaction.Triggers>
  517. <i:EventTrigger EventName="TextChanged">
  518. <i:InvokeCommandAction Command="{Binding LoginPasswordChangedCommand}" />
  519. </i:EventTrigger>
  520. </i:Interaction.Triggers>
  521. </TextBox>
  522. <CheckBox
  523. x:Name="DisplayLoginPasswordChk"
  524. Grid.Column="1"
  525. Height="16"
  526. HorizontalAlignment="Left"
  527. Panel.ZIndex="1"
  528. Command="{Binding DisplayPasswordCommand}"
  529. CommandParameter="{Binding RelativeSource={RelativeSource Self}}"
  530. Style="{StaticResource EyeCheckbox}"
  531. Visibility="{Binding ChkVis}" />
  532. </Grid>
  533. <Border
  534. BorderBrush="#F3465B"
  535. BorderThickness="1"
  536. CornerRadius="4"
  537. Effect="{StaticResource shadow.red-0-4}"
  538. Visibility="{Binding ElementName=Textbl_pass2, Path=Text, Converter={StaticResource LoginBordVis}}" />
  539. </Grid>
  540. <TextBlock
  541. x:Name="Textbl_pass2"
  542. Width="262"
  543. Height="20"
  544. Margin="0,4,0,0"
  545. Foreground="#F3465B"
  546. Text="{Binding LoginPasswordlook, Mode=TwoWay}" />
  547. <Button
  548. Width="262"
  549. Height="32"
  550. Margin="0,16,0,0"
  551. Command="{Binding PasswordUpdataCommand}"
  552. Content="{Binding Text_ok}"
  553. IsDefault="True"
  554. IsEnabled="{Binding EnableNextStep, Mode=TwoWay}"
  555. Style="{StaticResource Btn.cta}" />
  556. </StackPanel>
  557. </Grid>
  558. <Grid
  559. Width="326"
  560. Height="82"
  561. VerticalAlignment="Bottom"
  562. Background="#FDC7C6"
  563. Visibility="{Binding PasswordUpdatalookVis}">
  564. <WrapPanel
  565. Margin="9,0,0,0"
  566. HorizontalAlignment="Left"
  567. VerticalAlignment="Center">
  568. <Border
  569. Width="14"
  570. Height="14"
  571. Margin="-1,-4,0,0"
  572. Background="#F3465B"
  573. CornerRadius="100">
  574. <Path
  575. Margin="-1,-4,0,0"
  576. Data="M7.25 8V13H8.75V8H7.25ZM7.25 14.5V16H8.75L8.75 14.5H7.25Z"
  577. Fill="White" />
  578. </Border>
  579. <TextBlock
  580. Margin="9,0,0,0"
  581. HorizontalAlignment="Center"
  582. VerticalAlignment="Center"
  583. FontFamily="Segoe UI"
  584. FontSize="12"
  585. FontStyle="Normal"
  586. LineHeight="22"
  587. Text="{Binding PasswordUpdatamsglook}"
  588. TextAlignment="Center"
  589. TextWrapping="Wrap" />
  590. </WrapPanel>
  591. </Grid>
  592. </Grid>
  593. </UserControl>