PassWordView.xaml 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <Window x:Class="MECF.Framework.RT.Core.Backend.PassWordView"
  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:local="clr-namespace:MECF.Framework.RT.Core.Backend"
  7. mc:Ignorable="d" Icon="pack://application:,,,/MECF.Framework.RT.Core;component/Resources/MyLogoTray.ico"
  8. Height="220" Width="380" Title="Backend Login" Background="LightGray" WindowStyle="SingleBorderWindow" WindowStartupLocation="CenterScreen">
  9. <Grid HorizontalAlignment="Center" VerticalAlignment="Center" >
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="45" ></RowDefinition>
  12. <RowDefinition Height="45" ></RowDefinition>
  13. <RowDefinition Height="15" ></RowDefinition>
  14. <RowDefinition Height="55" ></RowDefinition>
  15. </Grid.RowDefinitions>
  16. <Grid.ColumnDefinitions>
  17. <ColumnDefinition Width="130"></ColumnDefinition>
  18. <ColumnDefinition Width="180"></ColumnDefinition>
  19. </Grid.ColumnDefinitions>
  20. <TextBlock Grid.Row="0" Grid.Column="0" Text="Account" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  21. <TextBox x:Name="LoginName" Text="admin" Grid.Row="0" Grid.Column="1" Height="30" Margin="5" VerticalContentAlignment="Center" VerticalAlignment="Center" />
  22. <TextBlock Grid.Row="1" Grid.Column="0" Text="Password" HorizontalAlignment="Center" VerticalAlignment="Center"/>
  23. <PasswordBox x:Name="PasswordBox" Grid.Row="1" Grid.Column="1" Height="30" Margin="5" PasswordChar="*" TextInput="PasswordBox_OnTextInput" PreviewTextInput="PasswordBox_OnPreviewTextInput" PasswordChanged="PasswordBox_OnPasswordChanged" VerticalContentAlignment="Center" VerticalAlignment="Center" />
  24. <Canvas Grid.Row="2" Grid.ColumnSpan="2" Width="400" Height="10" VerticalAlignment="Top" >
  25. <Line Width="500" Height="11" Stroke="White" StrokeThickness="1" X1="-50" Y1="10" X2="390" Y2="10" />
  26. </Canvas>
  27. <StackPanel Grid.Row="3" Grid.ColumnSpan="2" Orientation="Horizontal" HorizontalAlignment="Center">
  28. <Button Content="Login" HorizontalAlignment="Left" Margin="0,15,0,0" Height="25" Grid.Row="2" VerticalAlignment="Top" Width="85" Click="EnsureButton_Click" IsDefault="True"/>
  29. <Button Content="Cancel" Grid.Column="1" HorizontalAlignment="Left" Margin="25,15,0,0" Height="25" Grid.Row="2" VerticalAlignment="Top" Width="85" Click="CancelButton_Click"/>
  30. </StackPanel>
  31. </Grid>
  32. </Window>