RegestView.axaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <UserControl xmlns="https://github.com/avaloniaui"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  6. xmlns:vm="clr-namespace:ApplicationAvalonia.ViewModels"
  7. x:DataType="vm:RegestViewModel"
  8. x:Class="ApplicationAvalonia.Views.RegestView">
  9. <DockPanel VerticalAlignment="Center" HorizontalAlignment="Center">
  10. <StackPanel Orientation="Vertical">
  11. <TextBlock Text="Регистрация" HorizontalAlignment="Center" FontSize="24" />
  12. <TextBox Watermark="User name" Text="{Binding Name}"/>
  13. <TextBox Watermark="User surname" Text="{Binding Surname}" />
  14. <TextBox Watermark="Login" Text="{Binding Login}" />
  15. <TextBox Watermark="Password" PasswordChar="*" Text="{Binding Password}" />
  16. <TextBlock Text="{Binding Message}" Foreground="Red"/>
  17. <Button HorizontalAlignment="Center" Command="{Binding RegistrationBtnCommand}"
  18. VerticalAlignment="Center" Content="Зарегистрироваться" />
  19. </StackPanel>
  20. </DockPanel>
  21. </UserControl>