-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeacherHome.xaml
More file actions
34 lines (32 loc) · 1.52 KB
/
TeacherHome.xaml
File metadata and controls
34 lines (32 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<Page
x:Class="StudentManagmentSystem.TeacherHome"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:StudentManagmentSystem"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource SystemControlAltHighAcrylicWindowBrush}">
<Grid Margin="60">
<Grid.RowDefinitions>
<RowDefinition Height="60"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<StackPanel Orientation="Horizontal" >
<TextBlock Text="欢迎!" FontWeight="Bold" VerticalAlignment="Center" FontSize="24"/>
<TextBlock x:Name="usrnametextblock" FontWeight="Bold" VerticalAlignment="Center" FontSize="24"/>
</StackPanel>
<ListView x:Name="CourseListView" Grid.Row="1" VerticalAlignment="Stretch" Margin="0,20,0,0" >
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="{Binding CourseID}"/>
<TextBlock Text="{Binding CourseName}"/>
<TextBlock Text="{Binding Schedule}"/>
<TextBlock Text="{Binding Classroom}"/>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</Grid>
</Page>