96 lines
3.8 KiB
XML
96 lines
3.8 KiB
XML
<UserControl x:Class="Wpf_AiSportsMicrospace.MyUserControl.WhackAMoleUserControl"
|
|
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:Wpf_AiSportsMicrospace.MyUserControl"
|
|
xmlns:system="clr-namespace:System;assembly=mscorlib"
|
|
xmlns:gif="http://wpfanimatedgif.codeplex.com">
|
|
<Grid Width="410" Height="580">
|
|
<Image gif:ImageBehavior.AnimatedSource="/Resources/Img/play_img/whack_mole/mole_u.gif"
|
|
x:Name="image1"
|
|
gif:ImageBehavior.AutoStart="False"
|
|
gif:ImageBehavior.RepeatBehavior="1x"
|
|
gif:ImageBehavior.AnimateInDesignMode="True"
|
|
gif:ImageBehavior.AnimationSpeedRatio="0.82"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Width="420"
|
|
Margin="0,39,0,0"
|
|
Visibility="Visible" Height="516"/>
|
|
|
|
|
|
<Image gif:ImageBehavior.AnimatedSource="/Resources/Img/play_img/whack_mole/hit_u.gif"
|
|
x:Name="image2"
|
|
gif:ImageBehavior.AutoStart="False"
|
|
gif:ImageBehavior.RepeatBehavior="Forever"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Width="420"
|
|
Margin="0,30,0,0"
|
|
Visibility="Hidden"/>
|
|
|
|
|
|
<Image gif:ImageBehavior.AnimatedSource="/Resources/Img/play_img/whack_mole/rabbit_u.gif"
|
|
x:Name="image3"
|
|
gif:ImageBehavior.AutoStart="False"
|
|
gif:ImageBehavior.RepeatBehavior="Forever"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Width="420"
|
|
Visibility="Hidden"/>
|
|
|
|
|
|
<Image gif:ImageBehavior.AnimatedSource="/Resources/Img/play_img/whack_mole/rabbit_hit_u.gif"
|
|
x:Name="image4"
|
|
gif:ImageBehavior.AutoStart="False"
|
|
gif:ImageBehavior.RepeatBehavior="Forever"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Top"
|
|
Width="420"
|
|
Visibility="Hidden"/>
|
|
|
|
<Image
|
|
Source="/Resources/Img/play_img/whack_mole/score-bg.png"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Width="145"
|
|
Margin="234,511,0,0"
|
|
/>
|
|
<Image
|
|
Source="/Resources/Img/play_img/whack_mole/name-bot.png"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
Width="150"
|
|
Margin="40,571,0,0"
|
|
/>
|
|
<TextBlock
|
|
Text="{Binding NumberText, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
Width="135"
|
|
TextAlignment="Center"
|
|
HorizontalAlignment="Left"
|
|
VerticalAlignment="Top"
|
|
FontSize="55"
|
|
FontWeight="Bold"
|
|
Foreground="#FFD700"
|
|
Margin="239,522,0,0">
|
|
<TextBlock.Effect>
|
|
<DropShadowEffect Color="Black" BlurRadius="3" ShadowDepth="2"/>
|
|
</TextBlock.Effect>
|
|
</TextBlock>
|
|
|
|
<TextBlock Text="{Binding NameText, RelativeSource={RelativeSource AncestorType=UserControl}}"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Top"
|
|
FontSize="45"
|
|
FontWeight="Bold"
|
|
Foreground="White"
|
|
Margin="0,528,210,0">
|
|
<TextBlock.Effect>
|
|
<DropShadowEffect Color="#497600" BlurRadius="1" ShadowDepth="4"/>
|
|
</TextBlock.Effect>
|
|
</TextBlock>
|
|
|
|
|
|
</Grid>
|
|
</UserControl> |