ResultTestPage.xaml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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" d:DesignWidth="800"
  9. Title="ResultTestPage"
  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/20"
  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 Content="Посмотреть мои ответы"
  37. Width="150"
  38. Margin="10,0,0,0"
  39. Click="Button_Click"/>
  40. <Button
  41. Content="Выход"
  42. Width="150"
  43. Margin="10,0,0,0"
  44. Click="NextButton_Click"/>
  45. </StackPanel>
  46. </Grid>
  47. </Page>