UserControl2.axaml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:vm="using:AvaloniaApplicationKuzminIV.ViewModels"
  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. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:Class="AvaloniaApplicationKuzminIV.UserControl2"
  8. x:DataType="vm:MainWindowViewModel">
  9. <Grid RowDefinitions="5,*">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. <RowDefinition Height="Auto"/>
  16. <RowDefinition Height="Auto"/>
  17. <RowDefinition Height="Auto"/>
  18. <RowDefinition Height="Auto"/>
  19. <RowDefinition Height="Auto"/>
  20. <RowDefinition Height="*"/>
  21. </Grid.RowDefinitions>
  22. <Grid.ColumnDefinitions>
  23. <ColumnDefinition Width="*"/>
  24. </Grid.ColumnDefinitions>
  25. <TextBlock HorizontalAlignment="Center" Classes ="Header" Grid.Row="1" FontWeight="Bold" FontSize="20" >Добро пожаловать!</TextBlock>
  26. <TextBlock Name="email" Classes ="Default" HorizontalAlignment="Center" Grid.Row="2" FontWeight="Bold" FontSize="16" >Почта</TextBlock>
  27. <TextBox Text="{Binding Login}" HorizontalAlignment="Center" Margin="3" Width="100" Grid.Row="3"/>
  28. <TextBox Text="{Binding Password}" HorizontalAlignment="Center" Margin="3" Width="100" Grid.Row="6" PasswordChar="♥"/>
  29. <TextBlock Name="password" Classes ="Default" HorizontalAlignment="Center" Grid.Row="5" FontWeight="Bold" FontSize="16" >Пароль</TextBlock>
  30. <Button Name="my2Button" BorderThickness="1" BorderBrush="Black" CornerRadius="8" Command="{Binding Enter}" HorizontalAlignment="Center" Background="LightGreen" Margin="4" Grid.Row="9">Вход</Button>
  31. <Button Name="my3Button" BorderThickness="1" BorderBrush="Black" CornerRadius="8" Command="{Binding RegisterPageEnter}" HorizontalAlignment="Center" Background="LightGreen" Margin="4" Grid.Row="10">Регистрация</Button>
  32. </Grid>
  33. </UserControl>