12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <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:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- mc:Ignorable="d" d:DesignWidth="650" d:DesignHeight="450"
- xmlns:vm="using:AVSchool.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- x:Class="AVSchool.Views.DataTeacher">
- <Grid Background="LightBlue">
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="10*"/>
- </Grid.RowDefinitions>
- <Button Command="{Binding ToAdd}" Margin="0 10 10 0" Grid.Row="0" HorizontalAlignment="Right">Добавить преподавателя</Button>
- <ListBox ItemsSource="{Binding DataTeacherVM.TeachersData}" Background="LightBlue" Grid.Row="1">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border CornerRadius="5" BorderBrush="Blue" BorderThickness="2" Padding="15">
- <StackPanel HorizontalAlignment="Center" Orientation="Horizontal">
- <StackPanel Orientation="Vertical">
- <TextBlock FontWeight="Bold">Личная информация:</TextBlock>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding Name}"></TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding Patronymic}"></TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding Surname}"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock>Пол:</TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding IdGenderNavigation.Gender1}"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock>Дата рождения:</TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding newBirthdate}"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock>Стаж работы:</TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding newExpirience}"></TextBlock>
- </StackPanel>
- <TextBlock FontWeight="Bold">Контактная информация:</TextBlock>
- <StackPanel Orientation="Horizontal">
- <TextBlock>Почта:</TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding Email}"></TextBlock>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock>Телефон:</TextBlock>
- <TextBlock Margin="5,0,0,0" Text="{Binding Phone}"></TextBlock>
- </StackPanel>
- <TextBlock FontWeight="Bold">Курс в общем объёме 180 часов:</TextBlock>
- <ItemsRepeater ItemsSource="{Binding newCourses}"></ItemsRepeater>
- </StackPanel>
- <StackPanel Orientation="Vertical">
- <TextBlock FontWeight="Bold">Преподаваемые предметы:</TextBlock>
- <ItemsRepeater ItemsSource="{Binding newSubjects}"></ItemsRepeater>
- </StackPanel>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </UserControl>
|