终端一体化运控平台
Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 

152 linhas
6.8 KiB

  1. <UserControl x:Class="BPASmart.UserManagement.View.ChangeUser"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:BPASmart.UserManagement.View"
  7. xmlns:common="clr-namespace:BPASmart.UserManagement.Helper"
  8. xmlns:vm ="clr-namespace:BPASmart.UserManagement.ViewModel"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800" FontFamily="楷体">
  11. <UserControl.DataContext>
  12. <vm:ChangeUserViewModel/>
  13. </UserControl.DataContext>
  14. <Border Margin="100,40">
  15. <Border.Background>
  16. <ImageBrush ImageSource="../Image/user背景.png" Stretch="Fill"/>
  17. </Border.Background>
  18. <Grid>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="13*"/>
  21. <RowDefinition Height="44*"/>
  22. <RowDefinition Height="27*"/>
  23. <RowDefinition Height="173*"/>
  24. <RowDefinition Height="40*"/>
  25. <RowDefinition Height="77*"/>
  26. </Grid.RowDefinitions>
  27. <TextBlock Grid.Row="1" Text="修改密码" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="#009DFF"
  28. FontSize="24" Height="30" Width="96" />
  29. <TextBlock Grid.Row="2" Text="{Binding UserName}" VerticalAlignment="Bottom" HorizontalAlignment="Center" Foreground="Orange" FontSize="20" Height="23" />
  30. <Grid Grid.Row="3" VerticalAlignment="Center" Height="150" Width="260">
  31. <Grid.RowDefinitions>
  32. <RowDefinition Height="*"/>
  33. <RowDefinition Height="*"/>
  34. <RowDefinition Height="*"/>
  35. </Grid.RowDefinitions>
  36. <PasswordBox
  37. Name="pb0"
  38. Margin="5"
  39. common:PasswordHelper.Attach="True"
  40. common:PasswordHelper.Password="{Binding LastPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  41. BorderBrush="#009DFF"
  42. BorderThickness="3"
  43. FontSize="20"
  44. Height="40"
  45. Foreground="#009DFF"
  46. KeyDown="pb_KeyDown"
  47. PasswordChanged="pb0_PasswordChanged"
  48. Style="{DynamicResource PasswordBoxStyle}"
  49. TabIndex="2" />
  50. <PasswordBox
  51. Name="pb1"
  52. Grid.Row="1"
  53. Margin="5"
  54. common:PasswordHelper.Attach="True"
  55. common:PasswordHelper.Password="{Binding UserPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  56. BorderBrush="#009DFF"
  57. BorderThickness="3"
  58. FontSize="20"
  59. Height="40"
  60. Foreground="#009DFF"
  61. KeyDown="pb_KeyDown"
  62. PasswordChanged="PasswordBox_PasswordChanged"
  63. Style="{DynamicResource PasswordBoxStyle}"
  64. TabIndex="2" />
  65. <PasswordBox
  66. Name="pb2"
  67. Grid.Row="2"
  68. Margin="5"
  69. common:PasswordHelper.Attach="True"
  70. common:PasswordHelper.Password="{Binding ConfirmPassword, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
  71. BorderBrush="#009DFF"
  72. BorderThickness="3"
  73. FontSize="20"
  74. Height="40"
  75. Foreground="#009DFF"
  76. KeyDown="pb2_KeyDown"
  77. PasswordChanged="PasswordBox2_PasswordChanged"
  78. Style="{DynamicResource PasswordBoxStyle}"
  79. TabIndex="2" />
  80. <TextBlock
  81. Name="mark0Text"
  82. Grid.Row="0"
  83. Margin="58,5"
  84. HorizontalAlignment="Left"
  85. VerticalAlignment="Center"
  86. FontSize="16"
  87. Foreground="#88009dff"
  88. IsHitTestVisible="False"
  89. Text="请输入原始密码"
  90. Visibility="Visible" />
  91. <TextBlock
  92. Name="markText"
  93. Grid.Row="1"
  94. Margin="58,5"
  95. HorizontalAlignment="Left"
  96. VerticalAlignment="Center"
  97. FontSize="16"
  98. Foreground="#88009dff"
  99. IsHitTestVisible="False"
  100. Text="请输入账号密码"
  101. Visibility="Visible" />
  102. <TextBlock
  103. Name="mark2Text"
  104. Grid.Row="2"
  105. Margin="58,5"
  106. HorizontalAlignment="Left"
  107. VerticalAlignment="Center"
  108. FontSize="16"
  109. Foreground="#88009dff"
  110. IsHitTestVisible="False"
  111. Text="请再次确认密码"
  112. Visibility="Visible" />
  113. </Grid>
  114. <StackPanel Grid.Row="4" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Height="29" Width="320">
  115. <Button
  116. x:Name="saveButton"
  117. Grid.Column="1"
  118. Command="{Binding SaveUserCommand}"
  119. Content="保 存"
  120. Style="{StaticResource CommonButton}"
  121. FontSize="20"
  122. TabIndex="3"
  123. Width="120"
  124. Background="#009DFF"
  125. Foreground="White"
  126. VerticalAlignment="Top"
  127. Margin="20,0"/>
  128. <Button
  129. Command="{Binding ExitCommand}"
  130. Content="退 出" FontSize="20"
  131. Width="120"
  132. Style="{StaticResource CommonButton}"
  133. Background="#009DFF"
  134. Foreground="White"
  135. VerticalAlignment="Top"
  136. Margin="20,0"
  137. />
  138. </StackPanel>
  139. <StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Top" Visibility="{Binding ErrorVisibility}" Width="auto" >
  140. <Image Source="../image/科技警告.png" Width="25" Height="25" Stretch="Fill"/>
  141. <TextBlock Margin="10,0" Text="{Binding ErrorMessage}" Foreground="#FF3F36" FontSize="20" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  142. </StackPanel>
  143. </Grid>
  144. </Border>
  145. </UserControl>