1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <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:AvaloniaTeachersDB.ViewModels"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:Class="AvaloniaTeachersDB.Views.PersonalInformation"
- x:DataType="vm:MainWindowViewModel">
- <UserControl.Styles>
- <Style Selector="TextBlock">
- <Setter Property="FontSize" Value="18"/>
- <Setter Property="TextWrapping" Value="NoWrap"/>
- </Style>
- </UserControl.Styles>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="40"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Button Height="30" Content="Добавить" Margin="10,0,0,0" Command="{Binding ToAdd}"/>
- <ListBox Grid.Row="1" ItemsSource="{Binding PersonInf.listTeachers}" ScrollViewer.VerticalScrollBarVisibility="Auto">
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border BorderBrush="Black" BorderThickness="2" Padding="20">
- <Grid ColumnDefinitions="*, *">
- <StackPanel Grid.Column="0">
- <TextBlock FontWeight="Bold" Text="Личная информация:"/>
- <TextBlock Text="{Binding FIO}"/>
- <TextBlock Text="{Binding strGender}"/>
- <TextBlock Text="{Binding strBirthday}"/>
- <TextBlock Text="{Binding strExperience}"/>
- <TextBlock FontWeight="Bold" Text="Контактная информация: "/>
- <StackPanel Orientation="Horizontal">
- <TextBlock Text="{Binding strEmail}" Margin="0,0,15,0"/>
- <TextBlock Text="{Binding strPhone}"/>
- </StackPanel>
- <TextBlock FontWeight="Bold" Text="{Binding Allhourse}"/>
- <ItemsRepeater ItemsSource="{Binding CollectionCourse}"/>
- </StackPanel>
- <StackPanel Grid.Column="1">
- <TextBlock FontWeight="Bold" Text="Преподаваемые предметы:"/>
- <ItemsRepeater ItemsSource="{Binding CollectionSubject}"/>
- </StackPanel>
- </Grid>
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </UserControl>
|