LoginPage.xaml 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Page x:Class="MyTests.Pages.LoginPage"
  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:MyTests.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450"
  9. d:DesignWidth="800">
  10. <Grid Background="{StaticResource color1}">
  11. <Grid.ColumnDefinitions>
  12. <ColumnDefinition/>
  13. <ColumnDefinition Width="2*"/>
  14. <ColumnDefinition/>
  15. </Grid.ColumnDefinitions>
  16. <Grid.RowDefinitions>
  17. <RowDefinition/>
  18. <RowDefinition Height="2.75*"/>
  19. <RowDefinition/>
  20. </Grid.RowDefinitions>
  21. <Border Grid.Row="1"
  22. Grid.Column="1"
  23. BorderBrush="Black"
  24. BorderThickness="1.5"
  25. CornerRadius="15"
  26. Background="{StaticResource color2}">
  27. <StackPanel Orientation="Vertical"
  28. Margin="10"
  29. VerticalAlignment="Center"
  30. HorizontalAlignment="Center">
  31. <Label Content="Логин:"
  32. Foreground="{StaticResource TextColor}"
  33. Height="40"
  34. Width="240"
  35. FontSize="20"/>
  36. <TextBox Name="LogBox"
  37. Foreground="{StaticResource TextColor}"
  38. TextWrapping="Wrap"
  39. VerticalAlignment="Top"
  40. Height="40"
  41. Width="240"
  42. FontSize="20"/>
  43. <Label Content="Пароль:"
  44. Foreground="{StaticResource TextColor}"
  45. Height="40"
  46. Width="240"
  47. FontSize="20"/>
  48. <PasswordBox Name="PassBox"
  49. Foreground="{StaticResource TextColor}"
  50. Height="40"
  51. Width="240"
  52. FontSize="20"/>
  53. <StackPanel Orientation="Horizontal"
  54. Margin="0,20,0,0">
  55. <Button Name="RegButton"
  56. Content="Регистрация"
  57. Height="40"
  58. Width="150"
  59. Margin="0,0,30,0"
  60. FontSize="20"
  61. Click="RegButton_Click"/>
  62. <Button x:Name="LogButton"
  63. Content="Вход"
  64. Height="40"
  65. Width="150"
  66. FontSize="20"
  67. IsDefault="True"
  68. Click="LogButton_Click">
  69. </Button>
  70. </StackPanel>
  71. </StackPanel>
  72. </Border>
  73. </Grid>
  74. </Page>