InputTradePassWordView.xaml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <Window x:Class="Muchinfo.MTPClient.UI.Views.InputTradePassWordView"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:password="clr-namespace:Muchinfo.WPF.Controls.Password;assembly=Client.WPF.Controls"
  7. xmlns:resource="clr-namespace:Muchinfo.MTPClient.Resources;assembly=Client.Resources"
  8. xmlns:views="clr-namespace:Muchinfo.MTPClient.Account.Views;assembly=Client.Account"
  9. xmlns:windows="clr-namespace:Muchinfo.WPF.Controls.Windows;assembly=Client.WPF.Controls"
  10. x:Name="view"
  11. Title="{x:Static resource:Client_Resource.InputTradePassWordView_InputTradePassword}"
  12. Width="400"
  13. Height="170"
  14. BorderBrush="{DynamicResource MuchinfoBrush6}"
  15. BorderThickness="8"
  16. Closing="InputTradePassWordView_OnClosing"
  17. Loaded="InputTradePassWordView_OnLoaded"
  18. ResizeMode="NoResize"
  19. ShowInTaskbar="False"
  20. WindowStartupLocation="CenterOwner"
  21. WindowStyle="None"
  22. mc:Ignorable="d">
  23. <!-- WindowStyle="None" -->
  24. <!-- CloseButtonStyle="{DynamicResource DialogCloseButtonStyle} TitleBackGround="{DynamicResource MuchinfoBrush6}"" -->
  25. <Grid>
  26. <StackPanel>
  27. <StackPanel Margin="30,20,20,20">
  28. <TextBlock Text="软件正处于保护模式,请输入您的登陆密码激活程序" />
  29. </StackPanel>
  30. <WrapPanel>
  31. <TextBlock Margin="30,10,0,0" Text="{x:Static resource:Client_Resource.InputTradePassWordView_InputTradePassword}" />
  32. <PasswordBox Width="120"
  33. Height="24"
  34. Margin="20,0,0,0"
  35. FontFamily="Simsun, Microsoft YaHei"
  36. password:PasswordHelper.Attach="True"
  37. password:PasswordHelper.Password="{Binding TradePassWord,
  38. Mode=TwoWay,
  39. UpdateSourceTrigger=PropertyChanged}" />
  40. </WrapPanel>
  41. <WrapPanel Margin="0,20,0,0">
  42. <Button Width="80"
  43. Height="25"
  44. Margin="30,0,0,0"
  45. BorderThickness="0"
  46. Command="{Binding ConfrimCommand}"
  47. CommandParameter="{Binding ElementName=view}"
  48. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Confirm}"
  49. IsDefault="True"
  50. Style="{StaticResource CommonButtonStyle}" />
  51. <Button Width="80"
  52. Height="25"
  53. Margin="30,0,0,0"
  54. BorderThickness="0"
  55. Command="{Binding ResetCommand}"
  56. CommandParameter="{Binding ElementName=view}"
  57. Content="{x:Static resource:Client_Resource.InputTradePassWordView_Reset}"
  58. Style="{StaticResource CommonButtonStyle}" />
  59. <Button Width="90"
  60. Height="25"
  61. Margin="30,0,0,0"
  62. BorderThickness="0"
  63. Command="{Binding CancleCommand}"
  64. Content="{x:Static resource:Client_Resource.SystemExit}"
  65. Style="{StaticResource CommonButtonStyle}" />
  66. </WrapPanel>
  67. </StackPanel>
  68. </Grid>
  69. </Window>