AddCourse.axaml 1.2 KB

12345678910111213141516171819202122
  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="TeacheresAndCourses.AddCourse"
  7. xmlns:vm="using:TeacheresAndCourses.ViewModels"
  8. x:DataType="vm:AddCourseViewModel">
  9. <StackPanel Classes="addTeacherSP">
  10. <TextBlock Classes="addingTextFont">Добавить курс</TextBlock>
  11. <StackPanel Classes="oneLine">
  12. <TextBlock Classes="addingTextStyle2">Введите название курса</TextBlock>
  13. <TextBox Classes="inputTB" Text="{Binding CourseTitle}"></TextBox>
  14. </StackPanel>
  15. <StackPanel Classes="oneLine">
  16. <TextBlock Classes="addingTextStyle2">Введите часы курса</TextBlock>
  17. <TextBox Classes="inputTB" Text="{Binding CourseHours}"></TextBox>
  18. </StackPanel>
  19. <Button Classes="saveButton" Command="{Binding AddCourse}">Записать</Button>
  20. <Button Classes="saveButton" Command="{Binding ToMainPage}">На главную</Button>
  21. </StackPanel>
  22. </UserControl>