ResultTestPage.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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="0,0,10,0"
  39. Click="AnswersButton_Click"/>
  40. <Button Content="Профиль автора"
  41. Width="150"
  42. Margin="10,0,10,0"
  43. Click="ProfileButton_Click"/>
  44. <Button Content="К тестам"
  45. Width="150"
  46. Margin="10,0,0,0"
  47. Click="ExitButton_Click"/>
  48. </StackPanel>
  49. </Grid>
  50. </Page>