1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <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="800" d:DesignHeight="450"
- xmlns:vm="using:scool.ViewModels"
- x:DataType="vm:MainWindowViewModel"
- x:Class="scool.Views.DataTeachers">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="*"/>
- <RowDefinition Height="10*"/>
- </Grid.RowDefinitions>
- <Button Command="{Binding ToAdd}" Grid.Row="0" HorizontalAlignment="Right">Добавить преподавателя</Button>
- <ListBox ItemsSource="{Binding DataTeachersVM.TeachersData}" Grid.Row="1">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border CornerRadius="5" BorderBrush="DarkRed" BorderThickness="2" Padding="15">
- <StackPanel 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>
- <TextBlock Margin="20,0,0,0">Телефон:</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>
|