kursovaya/AddTeacher.axaml

29 lines
1.7 KiB
XML

<Window xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
x:Class="kursovaya.AddTeacher"
x:CompileBindings="False"
Title="AddTeacher">
<Grid Background="Bisque">
<Button Content="Назад" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="10" Width="60" Click="ButtonBack_OnClick" Background="LightGray" Foreground="Black"/>
<Border Width="200" HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel Spacing="10">
<TextBlock x:Name="SuccessMessage" Foreground="Green" FontSize="14" Height="40" Width="300" TextWrapping="Wrap" TextAlignment="Center"/>
<TextBox x:Name="TeacherNameTextBox" Watermark="Имя" Width="600"/>
<ListBox x:Name="ListBoxDisciplineGroup" Margin="0,10,0,0" SelectionMode="Multiple" Height="150" Width="600">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding DisciplineName}" />
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Button Click="ButtonAdd_OnClick" Foreground="Black" Background="LightGray" Content="Добавить" HorizontalAlignment="Center"/>
<TextBlock x:Name="ErrorMessage" Foreground="Red" FontSize="14" Height="40" Width="300" TextWrapping="Wrap" TextAlignment="Center"/>
</StackPanel>
</Border>
</Grid>
</Window>