-
Notifications
You must be signed in to change notification settings - Fork 2
/
MainWindow.xaml
65 lines (63 loc) · 4.85 KB
/
MainWindow.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<Window x:Class="MiniVerse.MainWindow"
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:MiniVerse"
mc:Ignorable="d"
Title="MiniVerse" Height="720" Width="1280" KeyDown="moverPersonaje" ResizeMode="NoResize" Icon="images/icono.png" WindowStartupLocation="CenterScreen">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="200*"/>
<ColumnDefinition Width="600*"/>
<ColumnDefinition Width="100*"/>
<ColumnDefinition Width="100*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="50*"/>
<RowDefinition Height="50*"/>
<RowDefinition Height="5*"/>
<RowDefinition Height="500*"/>
</Grid.RowDefinitions>
<Image x:Name="imgFondo" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top" Grid.RowSpan="4" Grid.ColumnSpan="4" Source="images/Universo/FondoUniverso.png" Stretch="Fill"/>
<Image x:Name="imgBanner" HorizontalAlignment="Left" Margin="0" VerticalAlignment="Top" Grid.RowSpan="2" Grid.ColumnSpan="4" Source="images/Universo/bannerUniverso.jpg" Stretch="UniformToFill"/>
<Button x:Name="btnUniverso" Content="UNIVERSO" Grid.Row="0" Grid.Column="2" Margin="5" Width="Auto" VerticalAlignment="Stretch" Click="tematicaUniverso" Foreground="White" FontSize="16" FontWeight="Bold">
<Button.Background>
<ImageBrush ImageSource="images/btnUniverso.jpg" Stretch="UniformToFill"/>
</Button.Background>
</Button>
<Button x:Name="btnDragonBall" Content="DRAGON BALL" Grid.Row="0" Grid.Column="3" Margin="5" Width="Auto" VerticalAlignment="Stretch" Click="tematicaDragonBall" Foreground="Black" FontWeight="Bold" FontSize="16" FontStretch="Normal">
<Button.Background>
<ImageBrush ImageSource="/images/btnDragonBall.png" Stretch="Fill"/>
</Button.Background>
</Button>
<Button Content="PAC MAN" Grid.Row="1" Grid.Column="3" Margin="5" Width="Auto" VerticalAlignment="Stretch" Click="tematicaPacMan" FontWeight="Bold" FontSize="16" Foreground="White">
<Button.Background>
<ImageBrush ImageSource="/images/btnPacMan.png" Stretch="UniformToFill"/>
</Button.Background>
</Button>
<Button Content="MARIO BROS" Grid.Row="1" Grid.Column="2" Margin="5" Width="Auto" VerticalAlignment="Stretch" Click="tematicaMarioBros" FontWeight="Bold" FontSize="16" Foreground="Black">
<Button.Background>
<ImageBrush ImageSource="/images/btnMarioBros.jpg"/>
</Button.Background>
</Button>
<Image x:Name="imgLogo" Margin="0" Grid.RowSpan="2" Source="/images/Universo/LogoUniverso.png" Stretch="Fill"/>
<Rectangle Margin="0,0.333,-0.333,0" Grid.Row="2" Grid.RowSpan="1" Stroke="Black" Grid.ColumnSpan="4">
<Rectangle.Fill>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black" Offset="0.556"/>
<GradientStop Color="White" Offset="1"/>
<GradientStop Color="White"/>
</LinearGradientBrush>
</Rectangle.Fill>
</Rectangle>
<Image x:Name="imgJuego1" Margin="120,40,960,340" Grid.Row="3" Grid.ColumnSpan="4" Source="images/Universo/venus.png"/>
<Image x:Name="imgJuego2" Margin="70,345,1020,40" Grid.Row="3" Grid.ColumnSpan="4" Source="images/Universo/marte.png"/>
<Image x:Name="imgJuego3" Margin="545,20,545,370" Grid.Row="3" Grid.ColumnSpan="4" Source="images/Universo/tierra.png"/>
<Image x:Name="imgJuego4" Margin="1000,40,80,350" Grid.Row="3" Grid.ColumnSpan="4" Source="images/Universo/urano.png" Visibility="Hidden"/>
<Image x:Name="imgSalir" Grid.Column="0" Margin="1050,350,10,10" Grid.Row="3" Source="images/Universo/salidaUniverso.png" Grid.ColumnSpan="4"/>
<Image x:Name="imgPersonaje" Grid.Column="0" Margin="565,300,553,105" Grid.Row="3" Grid.ColumnSpan="4" Source="images/Universo/naveUniverso.png" Height="150" Width="150"/>
<ProgressBar x:Name="pbPuntos" Grid.Column="1" Margin="20,20,20,20" Grid.RowSpan="2" Background="#3FFFFFFF" BorderBrush="Black" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Foreground="#B206B025"/>
<TextBlock x:Name="txtPuntuacion" Grid.Column="1" HorizontalAlignment="Left" TextWrapping="Wrap" Text="PUNTUACIÓN" VerticalAlignment="Top" Height="40" Width="580" FontWeight="Bold" FontSize="36" IsEnabled="False" TextAlignment="Center" Margin="100,31,0,0" Grid.RowSpan="2" Foreground="#BF000000"/>
</Grid>
</Window>