AddDisCurs.axaml 1.2 KB

12345678910111213141516171819202122232425
  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:AvaloniaApplication5.ViewModels"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
  7. x:DataType="vm:AddDisCursViewModel" FontSize="20"
  8. x:Class="AvaloniaApplication5.AddDisCurs">
  9. <UserControl.Resources>
  10. </UserControl.Resources>
  11. <Grid>
  12. <ScrollViewer>
  13. <Border BorderThickness="2" BorderBrush="Purple" CornerRadius="10" Width="600">
  14. <StackPanel HorizontalAlignment="Center" >
  15. <TextBlock FontWeight="Bold" Margin="40 20 0 0">Редактор курсов</TextBlock>
  16. <TextBox Watermark="Название курса" Width="300" Margin="0 10 0 0" Text="{Binding NewCourse.Name}"></TextBox>
  17. <TextBox Watermark="Количество часов" Width="300" Margin="0 10 0 0" Text="{Binding NewCourse.Time}" ></TextBox>
  18. <Button Command="{Binding AddCourse}" >Добавить</Button>
  19. </StackPanel>
  20. </Border>
  21. </ScrollViewer>
  22. </Grid>
  23. </UserControl>