终端一体化运控平台
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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