12345678910111213141516171819202122232425 |
- <UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:vm="using:AvaloniaApplication5.ViewModels"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:DataType="vm:AddDisCursViewModel" FontSize="20"
- x:Class="AvaloniaApplication5.AddDisCurs">
- <UserControl.Resources>
-
- </UserControl.Resources>
- <Grid>
- <ScrollViewer>
- <Border BorderThickness="2" BorderBrush="Purple" CornerRadius="10" Width="600">
- <StackPanel HorizontalAlignment="Center" >
- <TextBlock FontWeight="Bold" Margin="40 20 0 0">Редактор курсов</TextBlock>
- <TextBox Watermark="Название курса" Width="300" Margin="0 10 0 0" Text="{Binding NewCourse.Name}"></TextBox>
- <TextBox Watermark="Количество часов" Width="300" Margin="0 10 0 0" Text="{Binding NewCourse.Time}" ></TextBox>
- <Button Command="{Binding AddCourse}" >Добавить</Button>
- </StackPanel>
- </Border>
- </ScrollViewer>
- </Grid>
- </UserControl>
|