1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- <Page x:Class="MyTests.Pages.CheckTestResults"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:MyTests.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450"
- d:DesignWidth="676">
- <Grid Background="{StaticResource color1}">
- <Grid.RowDefinitions>
- <RowDefinition Height="50"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <StackPanel Orientation="Horizontal">
- <Image Name="TestImg"
- Source="/MyTests;component/Resources/Approval.png"
- Margin="7">
- </Image>
- <Label Name="TestName"
- Content="Название теста"
- FontSize="25">
- </Label>
- </StackPanel>
- <StackPanel Orientation="Horizontal"
- HorizontalAlignment="Right">
- <Label Content="Прошел:"
- FontSize="20">
- </Label>
- <Image Name="AuthorImg"
- Source="/MyTests;component/Resources/StandartImage.png"
- Margin="7">
- </Image>
- <Label Name="PassedLabel"
- Content="USER"
- FontSize="20"
- MouseDown="PassedLabel_MouseDown">
- </Label>
- </StackPanel>
- <ListBox Name="AnswersListBox"
- Background="{StaticResource color1}"
- BorderBrush="{Binding TestsListBox}"
- Grid.Row="1">
- <ScrollViewer VerticalScrollBarVisibility="Visible"/>
- <ListBox.ItemTemplate>
- <DataTemplate>
- <Border Width="{Binding Path=ActualWidth, ElementName=AnswersListBox}"
- Height="50"
- CornerRadius="10"
- Background="{StaticResource color2}">
- <StackPanel Orientation="Horizontal">
- <Label MinWidth="30"
- Content="{Binding AnswerNum}"
- VerticalContentAlignment="Center"
- HorizontalContentAlignment="Center">
- </Label>
- <StackPanel>
- <Label Content="{Binding Answer.Questions.Content}"/>
- <TextBlock>
- <Run Text="Ответ: " Foreground="LightGray"/>
- <Run Text="{Binding Answer.Answer}" Foreground="White"/>
- </TextBlock>
- </StackPanel>
- </StackPanel>
-
- </Border>
- </DataTemplate>
- </ListBox.ItemTemplate>
- </ListBox>
- </Grid>
- </Page>
|