ResultTestPage.xaml 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <Page x:Class="MyTests.Pages.ResultTestPage"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:MyTests.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450"
  9. d:DesignWidth="676"
  10. Background="{StaticResource color1}">
  11. <Grid Margin="20"
  12. Background="{StaticResource color2}">
  13. <Grid.RowDefinitions>
  14. <RowDefinition Height="321*"/>
  15. <RowDefinition Height="89*"/>
  16. </Grid.RowDefinitions>
  17. <StackPanel Orientation="Vertical"
  18. HorizontalAlignment="Center"
  19. VerticalAlignment="Center">
  20. <TextBlock FontSize="50">
  21. <Run Text="Вы прошли тест"/>
  22. <LineBreak/>
  23. <Run Text="Ваш результат"/>
  24. </TextBlock>
  25. <TextBlock Name="ResultTB"
  26. Text="0/0"
  27. FontSize="50"
  28. HorizontalAlignment="Center">
  29. </TextBlock>
  30. </StackPanel>
  31. <StackPanel Grid.Row="1"
  32. Orientation="Horizontal"
  33. VerticalAlignment="Center"
  34. HorizontalAlignment="Center"
  35. Height="40">
  36. <Button Name="CheckAnswersButton"
  37. Content="Посмотреть мои ответы"
  38. Width="150"
  39. Margin="10,0,10,0"
  40. Click="AnswersButton_Click"
  41. Visibility="Collapsed"/>
  42. <Button Content="Профиль преподавателя"
  43. Width="150"
  44. Margin="10,0,10,0"
  45. Click="ProfileButton_Click"/>
  46. <Button Content="В главное меню"
  47. Width="150"
  48. Margin="10,0,10,0"
  49. Click="ExitButton_Click"/>
  50. </StackPanel>
  51. </Grid>
  52. </Page>