|
<UserControl x:Class="BubbleBreaker.GameBoard"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Width="450" Height="466" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="d" VerticalAlignment="Stretch" HorizontalAlignment="Stretch">
<UserControl.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FF000000"/>
<GradientStop Color="#FFCAA8A8" Offset="1"/>
</LinearGradientBrush>
</UserControl.Background>
<Grid x:Name="LayoutRoot" Background="{StaticResource BrushBadkground}">
<Grid.RowDefinitions>
<RowDefinition Height="0.086*"/>
<RowDefinition Height="0.914*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="116"/>
</Grid.ColumnDefinitions>
<TextBlock Height="34" HorizontalAlignment="Center" VerticalAlignment="Stretch" Width="Auto" Text="Bubble Breaker" TextWrapping="Wrap" Margin="0,0,0,5" FontWeight="Bold" FontFamily="Portable User Interface" FontSize="30" Opacity="0.27" RenderTransformOrigin="0.5,0.5" Foreground="#FF000000" >
<TextBlock.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform X="4" Y="4"/>
</TransformGroup>
</TextBlock.RenderTransform>
</TextBlock>
<TextBlock Height="34" HorizontalAlignment="Center" VerticalAlignment="Stretch" Width="Auto" Text="Bubble Breaker" TextWrapping="Wrap" Margin="0,0,0,5" FontWeight="Bold" FontFamily="Portable User Interface" FontSize="30" Opacity="1">
<TextBlock.Foreground>
<RadialGradientBrush GradientOrigin="0.37,0.242">
<RadialGradientBrush.RelativeTransform>
<TransformGroup>
<ScaleTransform CenterX="0.5" CenterY="0.5" ScaleX="1.018" ScaleY="1.002"/>
<SkewTransform CenterX="0.5" CenterY="0.5"/>
<RotateTransform CenterX="0.5" CenterY="0.5"/>
<TranslateTransform X="-0.371" Y="0.076"/>
</TransformGroup>
</RadialGradientBrush.RelativeTransform>
<GradientStop Color="#FF77A8D3"/>
<GradientStop Color="#FF356994" Offset="1"/>
</RadialGradientBrush>
</TextBlock.Foreground>
</TextBlock>
<StackPanel Height="Auto" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Width="Auto" Grid.Row="1">
<Border x:Name="BorderGameArea" Margin="10,0,10,0" BorderBrush="#FF000000" BorderThickness="2,2,2,2" Width="265" Height="390" VerticalAlignment="Stretch" Padding="5,5,5,5" CornerRadius="5,5,5,5" Background="#FF343434">
<Canvas x:Name="CanvasGameArea" Height="Auto" Width="Auto" Margin="0,0,0,0"/>
</Border>
</StackPanel>
<Grid Height="Auto" Width="Auto" VerticalAlignment="Stretch" Grid.Column="1" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="27"/>
<RowDefinition Height="25"/>
<RowDefinition Height="*"/>
<RowDefinition Height="22"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<TextBlock Margin="0,0,0,-2" Text="Score" TextWrapping="Wrap" Foreground="{StaticResource TextBlue}" FontWeight="Bold" FontFamily="Portable User Interface" FontSize="20" HorizontalAlignment="Stretch" d:LayoutOverrides="Height" Grid.Row="0" />
<TextBlock Margin="6,3,2,-1" Text="0" TextWrapping="Wrap" x:Name="lblTotalScore" FontWeight="Bold" FontFamily="Portable User Interface" FontSize="16" Foreground="#FFDEDEF4" Grid.Row="1" />
<TextBlock Grid.Row="3" Text="Highest Score" TextWrapping="Wrap" Foreground="{StaticResource TextBlue}" FontSize="12"/>
<TextBlock Grid.Row="4" Text="0" TextWrapping="Wrap" x:Name="lblHeighestScore" Foreground="#FFFFF5F5"/>
</Grid>
<MediaElement Name="mediaBoing" AutoPlay="False" Volume="1" Source="Sounds/BoingSound.mp3" >
</MediaElement>
<MediaElement Name="mediaTickTock" AutoPlay="False" Volume="1" Source="Sounds/TickTock.mp3" >
</MediaElement>
</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.