Login.xaml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. <Window x:Class="NBAManagment.Login"
  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:NBAManagment"
  7. mc:Ignorable="d"
  8. Title="Login" Height="600" Width="1200" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
  9. <Grid>
  10. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Margin="30, 30" Name="mainPanel">
  11. <TextBlock Text="Users can login into the system using their jobnumber and password." Style="{StaticResource NormalText}" Margin="10, 10, 10, 60"/>
  12. <DockPanel>
  13. <TextBlock Text="LoginName" Width="80" Style="{StaticResource NormalText}" Foreground="{StaticResource DarkGray}" Margin="5" VerticalAlignment="Center"/>
  14. <TextBox x:Name="LoginNameBox" Padding="4" Margin="5" Height="28"/>
  15. </DockPanel>
  16. <DockPanel>
  17. <TextBlock Text="Password" Width="80" Style="{StaticResource NormalText}" Foreground="{StaticResource DarkGray}" Margin="5" VerticalAlignment="Center"/>
  18. <PasswordBox x:Name="passwordBox" Padding="4" Margin="5" Height="28"/>
  19. </DockPanel>
  20. <CheckBox Name="rememberMeComboBox" Content="Remember me" Margin="30" Foreground="{StaticResource DarkGray}"/>
  21. <Grid>
  22. <Button x:Name="loginButton" Style="{StaticResource ModernButton}" Content="Login" HorizontalAlignment="Left" Width="80" Height="30" Margin="10" Click="loginButton_Click"/>
  23. <Button x:Name="cancelButton" Style="{StaticResource ModernButton}" Click="cancelButton_Click" Content="Cancel" HorizontalAlignment="Right" Width="80" Height="30" Margin="10"/>
  24. </Grid>
  25. <Popup x:Name="chooseAdminTypePoput" AllowsTransparency="True" Focusable="True" PopupAnimation="Fade" Placement="Center" PlacementTarget="{Binding ElementName=mainPanel}">
  26. <Border Width="400" HorizontalAlignment="Center" VerticalAlignment="Center" BorderThickness="3" BorderBrush="{StaticResource DarkGray}" Background="White">
  27. <StackPanel>
  28. <TextBlock Text="FOR TESTING ONLY!" FontWeight="Bold" FontStyle="Italic" Foreground="#FFBF9000" TextAlignment="Center" FontSize="22px" Margin="10"/>
  29. <TextBlock Text="Which type of user would you like to log in to the system as?" Style="{StaticResource NormalText}" Margin="40, 20, 40, 5" TextAlignment="Center" TextWrapping="Wrap"/>
  30. <!--<Button x:Name="evnetAdminButton" Click="evnetAdminButton_Click" Content="Event Administarator" HorizontalAlignment="Center" Width="200" Height="40" Template="{StaticResource RoundButtonTemplate}" Foreground="Black" Margin="10"/>
  31. <Button x:Name="technicalAdminButton" Click="technicalAdminButton_Click" Content="Technical Administarator" HorizontalAlignment="Center" Width="200" Height="40" Template="{StaticResource RoundButtonTemplate}" Foreground="Black" Margin="10"/>-->
  32. </StackPanel>
  33. </Border>
  34. </Popup>
  35. </StackPanel>
  36. </Grid>
  37. </Window>