39 lines
2.8 KiB
XML
39 lines
2.8 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.GroupsFromAdminWindow"
|
|
x:CompileBindings="False"
|
|
Title="StudentsFromAdminWindow">
|
|
<Border Background="Bisque">
|
|
<DockPanel>
|
|
<StackPanel DockPanel.Dock="Top" Orientation="Horizontal" Background="LightBlue" Height="30">
|
|
<Button DockPanel.Dock="Left" Content="Назад" Click="ButtonBack_OnClick" Width="100" Margin="5, 0, 5, 0" HorizontalAlignment="Left" Foreground="Black" Background="LightGray"/>
|
|
<Button DockPanel.Dock="Left" Content="Добавить" Click="ButtonAddGroup_OnClick" Width="100" HorizontalAlignment="Left" Foreground="Black" Background="LightGray"/>
|
|
</StackPanel>
|
|
<Grid DockPanel.Dock="Top" ColumnDefinitions="1*,1*" Background="LightGray" Height="35">
|
|
<TextBlock Grid.Column="0" Text="Группа" VerticalAlignment="Center" Margin="5" Foreground="Black" FontWeight="Bold"/>
|
|
<TextBlock Grid.Column="1" Text="Год" VerticalAlignment="Center" Margin="5" Foreground="Black" FontWeight="Bold"/>
|
|
</Grid>
|
|
<ScrollViewer>
|
|
<ItemsControl x:Name="FlatGrid" ItemsSource="{Binding Groups}">
|
|
<ItemsControl.ItemTemplate>
|
|
<DataTemplate>
|
|
<Grid ColumnDefinitions="1*,1*" Margin="2" Background="LightGray" Height="40">
|
|
<Border Grid.Column="0" BorderBrush="Black" BorderThickness="0.5">
|
|
<TextBlock Text="{Binding Id}" VerticalAlignment="Center" Foreground="Black"/>
|
|
</Border>
|
|
|
|
<Border Grid.Column="1" BorderBrush="Black" BorderThickness="0.5">
|
|
<TextBlock Text="{Binding YearAdmission}" VerticalAlignment="Center" HorizontalAlignment="Center" Foreground="Black"/>
|
|
</Border>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ItemsControl.ItemTemplate>
|
|
</ItemsControl>
|
|
</ScrollViewer>
|
|
</DockPanel>
|
|
</Border>
|
|
</Window>
|