CheckTestResultsCatalog.xaml 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <Page x:Class="MyTests.Pages.CheckTestResultsCatalog"
  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="CheckTestResultsCatalog">
  10. <Grid Background="{StaticResource color1}">
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="30"/>
  13. <RowDefinition/>
  14. <RowDefinition Height="50"/>
  15. </Grid.RowDefinitions>
  16. <Label Name="ResultLabel"
  17. Content="Результаты:"
  18. FontSize="16">
  19. </Label>
  20. <ListBox Name="AnswersListBox"
  21. Background="{StaticResource color1}"
  22. BorderBrush="{x:Null}"
  23. Grid.Row="1"
  24. SelectionChanged="AnswersListBox_SelectionChanged">
  25. <ScrollViewer VerticalScrollBarVisibility="Visible"/>
  26. <ListBox.ItemTemplate>
  27. <DataTemplate>
  28. <Border Width="{Binding Path=ActualWidth, ElementName=AnswersListBox}"
  29. Margin="-7,0,0,0"
  30. Height="45"
  31. CornerRadius="10"
  32. Background="{StaticResource color2}">
  33. <StackPanel Orientation="Horizontal">
  34. <Image Width="30"
  35. Height="30"
  36. Margin="10,5,5,5"
  37. HorizontalAlignment="Left"
  38. Source="/MyTests;component/Resources/approval.png">
  39. </Image>
  40. <StackPanel>
  41. <StackPanel Orientation="Horizontal">
  42. <Label Content="{Binding User.Surname}"/>
  43. <Label Content="{Binding User.Name}"/>
  44. <Label Content="{Binding User.Patronymic}"/>
  45. </StackPanel>
  46. <TextBlock Margin="0,-7,0,0">
  47. <Run Text="Вопросов: "
  48. Foreground="White"/>
  49. <Run Text="{Binding Correct}"
  50. Foreground="White"/>
  51. <Run Text="/"
  52. Foreground="White"/>
  53. <Run Text="{Binding Count}"
  54. Foreground="White"/>
  55. </TextBlock>
  56. </StackPanel>
  57. </StackPanel>
  58. </Border>
  59. </DataTemplate>
  60. </ListBox.ItemTemplate>
  61. </ListBox>
  62. <Button Grid.Row="2"
  63. Content="Назад"
  64. Width="120"
  65. Height="40"
  66. FontSize="20" Margin="340,5">
  67. </Button>
  68. </Grid>
  69. </Page>