-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTeacherGrade.xaml
More file actions
58 lines (55 loc) · 2.99 KB
/
TeacherGrade.xaml
File metadata and controls
58 lines (55 loc) · 2.99 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<Page
x:Class="StudentManagmentSystem.TeacherGrade"
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.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="300"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="1">
<TextBlock Text="所有课程"/>
<ListView x:Name="CourseListView" Width="300" Margin="0,20,0,0" SelectionChanged="CourseListView_SelectionChanged">
<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>
</StackPanel>
<StackPanel Grid.Column="0" HorizontalAlignment="Stretch" VerticalAlignment="Top" Spacing="5">
<StackPanel Orientation="Horizontal" Spacing="10">
<TextBox x:Name="GradeTxbox" Header="录入成绩" Width="100"/>
<Button Content="缺考" x:Name="Grade_AbsentBtn" Click="Grade_AbsentBtn_Click" IsEnabled="False"/>
<Button Content="录入成绩" x:Name="GradeBtn" Click="GradeBtn_Click" IsEnabled="False" MinWidth="240"/>
<Button Content="作弊" x:Name="Grade_CheatBtn" Click="Grade_CheatBtn_Click" IsEnabled="False"/>
</StackPanel>
<ListView x:Name="SCListView" MinWidth="300" Height="600" Margin="0,20,0,0" SelectionChanged="SCListView_SelectionChanged">
<ListView.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal" Spacing="5">
<TextBlock Text="{Binding ID}"/>
<TextBlock Text="{Binding StudentID}"/>
<TextBlock Text="{Binding StudentName}"/>
<TextBlock Text="{Binding CourseID}"/>
<TextBlock Text="{Binding CourseName}"/>
<TextBlock Text="{Binding Schedule}"/>
<TextBlock Text="{Binding Classroom}"/>
<TextBlock Text="{Binding Grade}"/>
</StackPanel>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</StackPanel>
</Grid>
</Page>