Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / XAML

YouGrade - Silverlight Multimedia Exam Suite

Rate me:
Please Sign up or sign in to vote.
4.96/5 (62 votes)
5 Jun 2010CPOL16 min read 133.4K   3.1K   133  
A multimedia exam suite built on Silverlight and Youtube
<UserControl x:Class="YouGrade.Silverlight.View.SilverlightControl1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    xmlns:local="clr-namespace:YouGrade.Silverlight"
    xmlns:divtools="clr-namespace:Divelements.SilverlightTools;assembly=Divelements.SilverlightTools"
    xmlns:sc="clr-namespace:SilverlightCommands"
    xmlns:viewModel="clr-namespace:YouGrade.Silverlight.ViewModel"
    mc:Ignorable="d" d:DesignWidth="640" d:DesignHeight="480">
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.DataContext>
            <viewModel:QuestionViewModel></viewModel:QuestionViewModel>
        </Grid.DataContext>
        <Border CornerRadius="5,5,5,5" Background="Transparent" BorderThickness="0">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="64"/>
                    <RowDefinition Height="270"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="48"></ColumnDefinition>
                    <ColumnDefinition Width="322"></ColumnDefinition>
                    <ColumnDefinition Width="*"></ColumnDefinition>
                    <ColumnDefinition Width="100"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <Border Background="Black" Grid.Column="0" Grid.RowSpan="3" BorderThickness="0"></Border>
                <Border Background="Black" Grid.Row="0" Grid.Column="2" BorderThickness="0">
                    <Image Source="/Images/YouGrade.png"/>
                </Border>
                <Border Background="Black" Grid.Row="0" Grid.Column="1"  Grid.ColumnSpan="3" BorderThickness="0"></Border>
                <StackPanel>
                    <Border Name="HtmlHostContainer" Grid.Row="1" Grid.Column="1" BorderThickness="0">
                        <Border.Background>
                            <ImageBrush ImageSource="/Images/ScreenBackground.png" AlignmentX="Left" AlignmentY="Top" Opacity="100" Stretch="Uniform"/>
                        </Border.Background>
                        <divtools:HtmlHost Name="htmlHost"/>
                    </Border>
                </StackPanel>
                <Border Background="Black" Grid.Row="1" Grid.Column="3" BorderThickness="0">
                    <Image Source="/Images/YouGrade.png" Grid.Row="1" Grid.Column="3"/>
                </Border>
                <StackPanel Grid.Column="2" Grid.Row="1" Background="Black" Orientation="Horizontal">
                    <StackPanel>
                    </StackPanel>
                </StackPanel>
                <StackPanel Grid.Column="1" Grid.ColumnSpan="4" Grid.Row="2" Background="Black">
                    <TextBlock Text="Alternatives" Foreground="Black"/>
                    <ListBox x:Name="lstQuestions" Background="Black" ItemsSource="{Binding Path=Questions}">
                        <ListBox.ItemTemplate>
                            <DataTemplate>
                                <!--<StackPanel Orientation="Vertical">-->
                                    <CheckBox Content="{Binding Text}" Foreground="White" />
                                    <!--<TextBlock FontFamily="Arial" Height="32" FontWeight="Bold" Foreground="White" Text="{Binding Text}" />-->
                                <!--</StackPanel>-->
                            </DataTemplate>
                        </ListBox.ItemTemplate>
                    </ListBox>
                </StackPanel>
            </Grid>
        </Border>
    </Grid>
</UserControl>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Instructor / Trainer Alura Cursos Online
Brazil Brazil

Comments and Discussions