You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KinectExercise_FrancoBroda/PenaltyMaster3000/View/MainView.xaml

113 lines
4.1 KiB

<UserControl x:Class="PenaltyMaster3000.View.MainView"
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:PenaltyMaster3000.View"
mc:Ignorable="d"
Height="Auto" Width="Auto">
<Grid>
<Grid.Background>
<ImageBrush ImageSource="/Images/goal_background.jpg"
Stretch="UniformToFill"/>
</Grid.Background>
<Grid Margin="110,101,128,59">
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Image Source="/Images/goalkeeper_top_right.png"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
Visibility="Hidden"/>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="0"
Visibility="Hidden"/>
<Image Source="/Images/goalkeeper_top_middle.png"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="1"
Visibility="Hidden"/>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="1"
Visibility="Hidden"/>
<Image Source="/Images/goalkeeper_top_left.png"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="2"
Visibility="Hidden"/>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
Grid.Row="0"
Grid.RowSpan="2"
Grid.Column="2"
Visibility="Hidden"/>
<Image Source="/Images/goalkeeper_down_right.png"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="0"
Visibility="Hidden"/>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="0"
Visibility="Hidden"/>
<Image Source="{Binding CurrentImageSource}"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="1"
Visibility="Visible"/>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="1"
Visibility="Hidden"/>
<Image Source="/Images/goalkeeper_down_left.png"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="2"
Visibility="Hidden"/>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
Grid.Row="1"
Grid.RowSpan="2"
Grid.Column="2"
Visibility="Hidden"/>
</Grid>
<Image Source="/Images/football_ball.png"
Width="50"
Height="50"
VerticalAlignment="Bottom"
Visibility="Visible"/>
</Grid>
</UserControl>