First.xaml 5.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <Window x:Class="mateo.First"
  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:mateo"
  7. mc:Ignorable="d"
  8. Title="First" Height="450" Width="800" WindowStartupLocation="CenterScreen" ResizeMode="NoResize" WindowStyle="None" AllowsTransparency="True" Background="Transparent">
  9. <Grid Background="White">
  10. <Button x:Name="exit" Height="40" Width="40" Background="Transparent" BorderThickness="0" Click="btn_exit" Margin="750,10,10,400">
  11. <Image Source="image\exit.png" Height="40" Width="40"/>
  12. </Button>
  13. <Grid Background="#E74C32" Margin="0,0,405,-0.4">
  14. <Image Source="image/logo.png" Margin="44,247,77,0"/>
  15. </Grid>
  16. <Grid x:Name="grid_vhod" Margin="400,0,0,-0.4" Visibility="Visible">
  17. <TextBlock Text="Авторизация" FontSize="24" FontFamily="Century Gothic" HorizontalAlignment="Center" Margin="114,66,110,345"/>
  18. <TextBlock x:Name="txtlogin" Text="Логин" FontFamily="Century Gothic" FontSize="18" Foreground="Gray" Margin="64,162,63,259"/>
  19. <TextBox TextChanged="txtchangedLogin" Background="Transparent" x:Name="vvod_login" FontSize="18" FontFamily="Century Gothic"
  20. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,162,63,259" PreviewTextInput="txtPasswordLogin_PreviewTextInput"/>
  21. <TextBlock x:Name="txtpass" Text="Пароль" FontSize="18" FontFamily="Century Gothic" Foreground="Gray" Margin="64,226,63,198"/>
  22. <PasswordBox PasswordChanged="passchangedPass" x:Name="vvod_pass" FontSize="18" Background="Transparent"
  23. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,226,63,198" PreviewTextInput="txtPasswordLogin_PreviewTextInput"/>
  24. <Button x:Name="vhod" Content="Войти" Background="Black" Foreground="White" FontSize="18" FontFamily="Century Gothic" Click="btn_vhod" Margin="123,293,123,104" IsDefault="True"/>
  25. <Button x:Name="registr" Content="Нет аккаунта? Зарегистрироваться" Background="Transparent" FontSize="18" FontFamily="Century Gothic" BorderThickness="0" Click="btn_registr" Margin="40,351,40,70"/>
  26. </Grid>
  27. <Grid x:Name="grid_registr" Margin="400,0,0,-0.4" Visibility="Hidden">
  28. <!--<Grid.ColumnDefinitions>
  29. <ColumnDefinition Width="0*"/>
  30. <ColumnDefinition/>
  31. </Grid.ColumnDefinitions>-->
  32. <Button x:Name="cancel" Content="←" FontSize="40" FontFamily="Century Gothic" Width="40" Background="Transparent" BorderThickness="0" Click="btnCancel" Margin="0,0,360,396"/>
  33. <TextBlock Text="Регистрация" FontSize="24" FontFamily="Century Gothic" HorizontalAlignment="Center" Margin="101,10,102,396"/>
  34. <TextBlock x:Name="txtlastreg" Text="Фамилия" FontSize="18" FontFamily="Century Gothic" Foreground="Gray" Margin="64,90,63,330" Grid.ColumnSpan="2" />
  35. <TextBox TextChanged="txtchangedLogin" x:Name="vvod_LNAME" FontSize="18" FontFamily="Century Gothic" Background="Transparent"
  36. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,90,63,330" Grid.ColumnSpan="2" PreviewTextInput="txtFIO_PreviewTextInput"/>
  37. <TextBlock x:Name="txtfirstreg" Text="Имя" FontSize="18" FontFamily="Century Gothic" Foreground="Gray" Margin="64,134,63,286" Grid.ColumnSpan="2" />
  38. <TextBox TextChanged="txtchangedLogin" x:Name="vvod_FNAME" FontSize="18" FontFamily="Century Gothic" Background="Transparent"
  39. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,134,63,286" Grid.ColumnSpan="2" PreviewTextInput="txtFIO_PreviewTextInput"/>
  40. <TextBlock x:Name="txtmiddlereg" Text="Отчество" FontSize="18" FontFamily="Century Gothic" Foreground="Gray" Margin="64,178,63,242" Grid.ColumnSpan="2" />
  41. <TextBox TextChanged="txtchangedLogin" x:Name="vvod_MNAME" FontFamily="Century Gothic" FontSize="18" Background="Transparent"
  42. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,178,63,242" Grid.ColumnSpan="2" PreviewTextInput="txtFIO_PreviewTextInput"/>
  43. <TextBlock x:Name="txtloginreg" Text="Логин" FontSize="18" FontFamily="Century Gothic" Foreground="Gray" Margin="64,222,63,198" Grid.ColumnSpan="2" />
  44. <TextBox TextChanged="txtchangedLogin" x:Name="vvod_login_reg" FontFamily="Century Gothic" Background="Transparent" FontSize="18"
  45. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,222,63,198" Grid.ColumnSpan="2" PreviewTextInput="txtPasswordLogin_PreviewTextInput"/>
  46. <TextBlock x:Name="txtpassreg" Text="Пароль" FontSize="18" FontFamily="Century Gothic" Foreground="Gray" Margin="64,266,63,154" Grid.ColumnSpan="2" />
  47. <PasswordBox PasswordChanged="passchangedPass" x:Name="vvod_pass_reg" Background="Transparent" FontSize="18"
  48. BorderThickness="0 0 0 2" BorderBrush="Black" MaxLength="20" Margin="64,266,63,154" Grid.ColumnSpan="2" PreviewTextInput="txtPasswordLogin_PreviewTextInput"/>
  49. <Button x:Name="registr2" Content="Зарегистрироваться" FontFamily="Century Gothic" Background="Black" Foreground="White" FontSize="18" Click="btn_regist2" Margin="101,333,102,64" Grid.ColumnSpan="2"/>
  50. </Grid>
  51. </Grid>
  52. </Window>