RedistrationPage.axaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. x:Class="AvaloniaApplication1.RedistrationPage"
  7. xmlns:vm="using:AvaloniaApplication1.ViewModels"
  8. x:DataType="vm:RegistrationPageViewModel">
  9. <StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
  10. <TextBlock Text="Фамилия:" Margin="0 5"/>
  11. <TextBox Text="{Binding Surname}" Watermark=" Введите фамилию"/>
  12. <TextBlock Text="Имя:" Margin="0 5"/>
  13. <TextBox Text="{Binding Name}" Watermark="Введите имя"/>
  14. <TextBlock Text="Отчеcтво:" Margin="0 5"/>
  15. <TextBox Text="{Binding Patronymic}" Watermark="Введите отчество"/>
  16. <TextBlock Text="Выберете пол: " Margin="0 5"/>
  17. <ComboBox ItemsSource="{Binding GenderList}" SelectedItem="{Binding SelectedGender}">
  18. <ComboBox.ItemTemplate>
  19. <DataTemplate>
  20. <TextBlock Text="{Binding Title}"/>
  21. </DataTemplate>
  22. </ComboBox.ItemTemplate>
  23. </ComboBox>
  24. <TextBlock Text="Введите дату рождения: " Margin="0 5"/>
  25. <DatePicker SelectedDate="{Binding DateTimeOffset}"/>
  26. <TextBlock Text="Логин" Margin="0 5"/>
  27. <TextBox Text="{Binding Login}" Watermark="Введите логин" Margin="0 5"/>
  28. <TextBlock Text="Пароль" Margin="0 5"/>
  29. <TextBox Text="{Binding Password}" Watermark="Введите пароль" PasswordChar="*" Margin="0 5"/>
  30. <TextBlock Text="Повторный пароль" Margin="0 5"/>
  31. <TextBox Text="{Binding RepeatedPassword}" Watermark="Введите пароль повторно" PasswordChar="*" Margin="0 5"/>
  32. <Button Content="Зарегестрироваться" Command="{Binding Registration}"/>
  33. <TextBlock Text="{Binding Info}"></TextBlock>
  34. </StackPanel>
  35. </UserControl>