LoginPage.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <Page x:Class="PsychoTest.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:PsychoTest.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="1024" d:DesignWidth="1440"
  9. Title="LoginPage">
  10. <Page.Resources>
  11. <SolidColorBrush x:Key="TextBox.MouseOver.Border" Color="#FF7EB4EA"/>
  12. <SolidColorBrush x:Key="TextBox.Focus.Border" Color="#FF569DE5"/>
  13. <ControlTemplate x:Key="TextBoxTemplate1" TargetType="{x:Type TextBoxBase}">
  14. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
  15. <ScrollViewer x:Name="PART_ContentHost" Focusable="false" HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden"/>
  16. </Border>
  17. <ControlTemplate.Triggers>
  18. </ControlTemplate.Triggers>
  19. </ControlTemplate>
  20. </Page.Resources>
  21. <Grid Background="#00A08A">
  22. <Border CornerRadius="10" BorderThickness="2" BorderBrush="Black" Height="520" Width="480" HorizontalAlignment="Center" VerticalAlignment="Center">
  23. <Border.Background>
  24. <SolidColorBrush Color="White" Opacity="0.22"/>
  25. </Border.Background>
  26. <StackPanel>
  27. <TextBlock Margin="0,20,0,0" HorizontalAlignment="Center" Text="Логин" FontSize="30"/>
  28. <Border Margin="0,10,0,0" CornerRadius="10" BorderThickness="2" BorderBrush="Black" HorizontalAlignment="Center" VerticalAlignment="Center">
  29. <Border.Background>
  30. <SolidColorBrush Color="White" Opacity="0.22"/>
  31. </Border.Background>
  32. <TextBox VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="30" BorderBrush="#0000" Template="{DynamicResource TextBoxTemplate1}" HorizontalAlignment="Center" Height="70" Width="400" Background="#0000" Name="Login"/>
  33. </Border>
  34. <TextBlock Margin="0,15,0,0" HorizontalAlignment="Center" Text="Пароль" FontSize="30"/>
  35. <Border Margin="0,10,0,0" CornerRadius="10" BorderThickness="2" BorderBrush="Black" HorizontalAlignment="Center" VerticalAlignment="Center">
  36. <Border.Background>
  37. <SolidColorBrush Color="White" Opacity="0.22"/>
  38. </Border.Background>
  39. <PasswordBox Template="{DynamicResource PasswordBoxTemplate1}" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" FontSize="30" BorderBrush="#0000" HorizontalAlignment="Center" Height="70" Width="400" Background="#0000" PasswordChar="•" Name="Password"/>
  40. </Border>
  41. <Border HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,40,0,0" CornerRadius="10" Background="#FFA400">
  42. <Button Click="LogIn" BorderBrush="#0000" Template="{DynamicResource ButtonTemplate1}" Height="70" Width="400" Background="#0000" FontSize="35" Content="Войти"/>
  43. </Border>
  44. </StackPanel>
  45. </Border>
  46. </Grid>
  47. </Page>