12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <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"
- xmlns:vm="using:AvaloniaApplicationBase.ViewModels"
- x:DataType="vm:show"
- mc:Ignorable="d"
- d:DesignWidth="800" d:DesignHeight="450"
- x:Class="AvaloniaApplicationBase.Show">
- <Grid HorizontalAlignment="Center" Background="White" Margin="20">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <TextBlock Text="Список Преподавателей" FontSize="22" FontWeight="Bold" HorizontalAlignment="Center" Margin="0 0 0 20"/>
- <ListBox ItemsSource="{Binding TeacherList}" Grid.Row="1" Background="White" BorderThickness="0">
- <ListBox.ItemsPanel>
- <ItemsPanelTemplate>
- <WrapPanel />
-
- </ItemsPanelTemplate>
- </ListBox.ItemsPanel>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border BorderThickness="1" BorderBrush="#E0E0E0" CornerRadius="8" Margin="10" Padding="15" Background="White" Effect="{StaticResource ShadowEffect}" Width="700">
-
- <StackPanel Orientation="Vertical">
- <TextBlock Text="Личная информация" FontWeight="Bold" FontSize="16" Margin="0 0 0 5"/>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding LastName}" FontSize="14" Margin="0 3"/>
- <TextBlock Text=" "/>
- <TextBlock Text="{Binding FirstName}" FontSize="14" Margin="0 3"/>
- <TextBlock Text=" "/>
- <TextBlock Text="{Binding PatronymicName}" FontSize="14" Margin="0 3"/>
- </StackPanel>
-
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Пол: " FontWeight="Medium" Margin="0 3"/>
- <TextBlock Text="{Binding Gender.GenderName}" Margin="0 3"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Дата рождения: " FontWeight="Medium" Margin="0 3"></TextBlock>
- <TextBlock Text="{Binding DateOfBirth, StringFormat=D}" Margin="0 3"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Стаж работы: " FontWeight="Medium" Margin="0 3"></TextBlock>
- <TextBlock Text="{Binding Experience}" Margin="0 3"/>
- <TextBlock Text=" месяцев." Margin="0 3"/>
- </StackPanel>
- <TextBlock Text="Контактная информация:" FontWeight="Bold" FontSize="16" Margin="0 5 0 5" />
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Почта: " FontWeight="Medium" Margin="0 3"></TextBlock>
- <TextBlock Text="{Binding Email}" Margin="0 3"/>
- </StackPanel>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="Телефон: " FontWeight="Medium" Margin="0 3"></TextBlock>
- <TextBlock Text="{Binding Phone}" Margin="0 3"/>
-
-
- </StackPanel>
- <TextBlock Text="{Binding count}" FontWeight="Medium" Margin="3 3"></TextBlock>
- <ItemsControl ItemsSource="{Binding TeacherCourses}">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Course.Name}" Foreground="#0078D7" Margin="3 3"/>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- <TextBlock Text="Преподаваемые дисциплины:" FontWeight="Bold" FontSize="16" Margin="3 5 0 5"/>
- <ItemsControl ItemsSource="{Binding TeacherDisciplines}" Margin="3 0">
- <ItemsControl.ItemTemplate>
- <DataTemplate>
- <TextBlock Text="{Binding Discipline.Name}" Foreground="#0078D7" Margin="0 3"/>
- </DataTemplate>
- </ItemsControl.ItemTemplate>
- </ItemsControl>
- </StackPanel>
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </UserControl>
|