AddCourseView.axaml 1.0 KB

1234567891011121314
  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:vm="using:Teachers.ViewModels"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="400" d:DesignHeight="225"
  7. x:Class="Teachers.AddCourseView"
  8. x:DataType="vm:AddTeacherViewModel">
  9. <Grid ColumnDefinitions="*" RowDefinitions="*, *, *">
  10. <TextBox Classes="tbCourse" Name="tbCourse" Watermark="Название курса" Grid.Column="0" Grid.Row="0" Text="{Binding NewCourse.Name}"></TextBox>
  11. <TextBox Classes="tbDuration" Name="tbDuration" Watermark="Количество часов" Height="50" Grid.Column="0" Grid.Row="1" Text="{Binding NewCourse.Duration}"></TextBox>
  12. <Button Classes="bAddCourse" Name="bSaveCourse" Grid.Column="0" Grid.Row="2" Click="bAddCourse">Добавить курс</Button>
  13. </Grid>
  14. </UserControl>