-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQuizResultsWindow.xaml
65 lines (56 loc) · 3.74 KB
/
QuizResultsWindow.xaml
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
59
60
61
62
63
64
65
<Window x:Class="MyDictionary.QuizResultsWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Quiz Results"
Height="600"
Width="730"
WindowStartupLocation="CenterScreen"
Closed="Window_Closed"
Icon="pack://application:,,,/Resources/icon.bmp">
<!--<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">-->
<Grid ShowGridLines="False">
<Grid.RowDefinitions>
<RowDefinition Height="85"/>
<RowDefinition Height="6*"/>
</Grid.RowDefinitions>
<Border BorderBrush="Black" BorderThickness="3" Margin="5"/>
<Border Grid.Row="1" BorderBrush="Black" BorderThickness="2" Margin="5"/>
<Grid ShowGridLines="False">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
<ColumnDefinition Width="1*"/>
</Grid.ColumnDefinitions>
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock DockPanel.Dock="Top" Text="Questions" HorizontalAlignment="Center" VerticalAlignment="Top"/>
<TextBlock x:Name="totalQs" Text="100" TextAlignment="Center" FontSize="34" />
</StackPanel>
<StackPanel Grid.Column="1" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock DockPanel.Dock="Top" Text="Correct Anwers" HorizontalAlignment="Center" VerticalAlignment="Top"/>
<TextBlock x:Name="correctCount" Text="50" TextAlignment="Center" FontSize="34" />
</StackPanel>
<StackPanel Grid.Column="2" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock DockPanel.Dock="Top" Text="Incorrect Anwers" HorizontalAlignment="Center" VerticalAlignment="Top"/>
<TextBlock x:Name="wrongCount" Text="50" TextAlignment="Center" FontSize="34" />
</StackPanel>
</Grid>
<DockPanel x:Name="reportPanel" Grid.Row="1" LastChildFill="False" Margin="10" HorizontalAlignment="Center" MaxWidth="700">
<TextBlock DockPanel.Dock="Top" Text="Quiz Report" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="5,5,5,0" FontWeight="Bold" FontSize="35"/>
<TextBlock x:Name="quizTypeTBL" DockPanel.Dock="Top" Text="Quiz type" HorizontalAlignment="Center" VerticalAlignment="Top" Margin="5,0,5,10" FontWeight="Bold" FontSize="25"/>
<ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Disabled" MaxWidth="700">
<ListView x:Name="report" DockPanel.Dock="Top" BorderBrush="Black" MaxWidth="672" TextOptions.TextFormattingMode="Display">
<ListView.View>
<GridView>
<GridViewColumn x:Name="qNumCol" Header="№" Width="25" DisplayMemberBinding="{Binding QuestionNumber}"/>
<GridViewColumn x:Name="questionCol" Header="Question" Width="135" DisplayMemberBinding="{Binding Question}"/>
<GridViewColumn x:Name="correctAnswer" Header="Correct answers" Width="229" DisplayMemberBinding="{Binding CorrectAnswer}"/>
<GridViewColumn x:Name="answerCol" Header="Your answers" Width="227" DisplayMemberBinding="{Binding Answer}"/>
<GridViewColumn x:Name="correctCol" Header="Correct" Width="50" DisplayMemberBinding="{Binding Correctness}"/>
</GridView>
</ListView.View>
</ListView>
</ScrollViewer>
</DockPanel>
</Grid>
<!--</ScrollViewer>-->
</Window>