终端一体化运控平台
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

AdministratorPasswordChangeView.xaml 6.7 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  1. <UserControl x:Class="FryPot_DosingSystem.View.AdministratorPasswordChangeView"
  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" xmlns:helper="clr-namespace:FryPot_DosingSystem.Helper"
  6. xmlns:uc="clr-namespace:BPASmartClient.CustomResource.UserControls;assembly=BPASmartClient.CustomResource"
  7. xmlns:local="clr-namespace:FryPot_DosingSystem.View"
  8. xmlns:vm="clr-namespace:FryPot_DosingSystem.ViewModel"
  9. mc:Ignorable="d"
  10. d:DesignHeight="450" d:DesignWidth="800">
  11. <UserControl.DataContext>
  12. <vm:AdministratorPasswordChangeViewModel/>
  13. </UserControl.DataContext>
  14. <UserControl.Resources>
  15. <Style x:Key="TxLogin" TargetType="TextBlock">
  16. <Setter Property="FontSize" Value="20" />
  17. <Setter Property="Foreground" Value="#ddd" />
  18. <Setter Property="HorizontalAlignment" Value="Center" />
  19. <Setter Property="VerticalAlignment" Value="Center" />
  20. </Style>
  21. </UserControl.Resources>
  22. <Grid>
  23. <!--<Grid.ColumnDefinitions>
  24. <ColumnDefinition Width="7*" />
  25. <ColumnDefinition Width="10*" />
  26. </Grid.ColumnDefinitions>-->
  27. <!--<Grid.RowDefinitions>
  28. <RowDefinition Height="5*" />
  29. <RowDefinition Height="5*" />
  30. <RowDefinition Height="5*" />
  31. <RowDefinition Height="4*" />
  32. <RowDefinition Height="8*" />
  33. <RowDefinition Height="20*" />
  34. </Grid.RowDefinitions>-->
  35. <Grid.RowDefinitions>
  36. <RowDefinition />
  37. <RowDefinition />
  38. </Grid.RowDefinitions>
  39. <!--#region 登录-->
  40. <Grid>
  41. <Grid.ColumnDefinitions>
  42. <ColumnDefinition Width="0.7*"/>
  43. <ColumnDefinition />
  44. </Grid.ColumnDefinitions>
  45. <Grid.RowDefinitions>
  46. <RowDefinition />
  47. <RowDefinition />
  48. <RowDefinition />
  49. <RowDefinition />
  50. <RowDefinition />
  51. </Grid.RowDefinitions>
  52. <TextBlock
  53. HorizontalAlignment="Right"
  54. VerticalAlignment="Center"
  55. Foreground="#feffff"
  56. Style="{StaticResource TxLogin}"
  57. Text="权限:" />
  58. <ComboBox
  59. Grid.Column="1"
  60. Width="230"
  61. HorizontalAlignment="Left"
  62. VerticalAlignment="Center"
  63. BorderBrush="#FF074B92"
  64. BorderThickness="1"
  65. FontFamily="楷体"
  66. FontSize="20"
  67. Foreground="#FF2AB2E7"
  68. IsEditable="False"
  69. ItemsSource="{Binding permission}"
  70. Style="{StaticResource ComboBoxStyle}"
  71. Text="{Binding SelectText}" />
  72. <TextBlock
  73. Grid.Row="1"
  74. HorizontalAlignment="Right"
  75. VerticalAlignment="Center"
  76. Foreground="#feffff"
  77. Style="{StaticResource TxLogin}"
  78. Text="账号:" />
  79. <TextBox
  80. x:Name="tbx_admin"
  81. Grid.Row="1"
  82. Grid.Column="1"
  83. Width="230"
  84. Height="28"
  85. HorizontalAlignment="Left"
  86. VerticalAlignment="Center"
  87. HorizontalContentAlignment="Center"
  88. VerticalContentAlignment="Top"
  89. Background="Transparent"
  90. BorderBrush="White"
  91. BorderThickness="0,0,0,1"
  92. FontSize="20"
  93. Foreground="#F8F8FF"
  94. GotFocus="tbx_admin_GotFocus"
  95. Text="{Binding Admin, Mode=TwoWay}" />
  96. <TextBlock
  97. Grid.Row="2"
  98. HorizontalAlignment="Right"
  99. VerticalAlignment="Center"
  100. Foreground="#feffff"
  101. Style="{StaticResource TxLogin}"
  102. Text="密码:" />
  103. <PasswordBox
  104. x:Name="password"
  105. Grid.Row="2"
  106. Grid.Column="1"
  107. Width="230"
  108. HorizontalAlignment="Left"
  109. VerticalAlignment="Center"
  110. HorizontalContentAlignment="Center"
  111. VerticalContentAlignment="Top"
  112. helper:PasswordBoxHelper.PasswordContent="{Binding Password, Mode=TwoWay}"
  113. Background="Transparent"
  114. BorderBrush="White"
  115. BorderThickness="0,0,0,1"
  116. CaretBrush="White"
  117. FontSize="16"
  118. Foreground="#F8F8FF"
  119. GotFocus="password_GotFocus" />
  120. <TextBlock
  121. Grid.Row="3"
  122. Grid.ColumnSpan="2"
  123. HorizontalAlignment="Center"
  124. VerticalAlignment="Center"
  125. FontFamily="楷体"
  126. FontSize="16"
  127. Foreground="#FFE2415C"
  128. Text="{Binding ErrorMessage}"
  129. TextWrapping="Wrap" />
  130. <StackPanel Grid.Row="4" Grid.ColumnSpan="2" Orientation="Horizontal">
  131. <Button
  132. Margin="280,0,0,0"
  133. Width="120"
  134. Height="40"
  135. VerticalAlignment="Center"
  136. Background="Transparent"
  137. BorderBrush="#ff19b7ec"
  138. BorderThickness="2"
  139. Command="{Binding AdminLoginCommand}"
  140. Content="登 录"
  141. FontSize="28"
  142. Foreground="#9934F7F7"
  143. IsDefault="True" />
  144. <Button
  145. Margin="30,0,0,0"
  146. Width="120"
  147. Height="40"
  148. VerticalAlignment="Center"
  149. Background="Transparent"
  150. BorderBrush="#ff19b7ec"
  151. BorderThickness="2"
  152. Content="修改"
  153. FontSize="28"
  154. Foreground="#9934F7F7"
  155. IsDefault="True"
  156. Command="{Binding RegistCommand}"/>
  157. </StackPanel>
  158. </Grid>
  159. <!--#endregion-->
  160. <!--#region 密码修改-->
  161. <Grid>
  162. <Grid.ColumnDefinitions>
  163. <ColumnDefinition />
  164. <ColumnDefinition />
  165. </Grid.ColumnDefinitions>
  166. </Grid>
  167. <!--#endregion-->
  168. <uc:UserKeyBoard
  169. x:Name="myKeyboard"
  170. Grid.Row="5"
  171. Grid.ColumnSpan="2"
  172. Margin="100,10,100,50"
  173. Focusable="False" />
  174. </Grid>
  175. </UserControl>