You are on page 1of 3

<Window x:Class="Animaciones.

Pollito"
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:Animaciones"
mc:Ignorable="d"
Title="Pollito" Height="450" Width="800">
<Canvas>
<Path Canvas.Top="235" Canvas.Left="356" Stroke="Black" Fill="YellowGreen"
Data="M100,20 L100,160
Q60,140 40 180
L130,180
L130,20
L100,20
"></Path>
<Ellipse Stroke="Black" Fill="DarkRed" Canvas.Top="150" Canvas.Left="436"
Height="140" Width="70"></Ellipse>

<Canvas Canvas.Top="20" Canvas.Left="-18">


<Path Canvas.Top="70" Canvas.Left="230" Stroke="Black" Fill="Red"
Data="M230,100 L70,100 L70,125 L230,125"></Path>
<Path Fill="White" Canvas.Top="100" Canvas.Left="232" Stroke="Black"
Data="M180, 60 L300,60
Q360,20 390 60
Q415,90,390,105
Q360,130 300 105
L180,105 L180,60"
></Path>
<Path Stroke="Black" Fill="Red" Canvas.Top="202" Canvas.Left="305"
Data="M10,20 L20,30 L20,15 L10,20"></Path>
<Ellipse Canvas.Top="142" Canvas.Left="270" Stroke="Black" Fill="Red"
Height="80" Width="80"></Ellipse>
<Ellipse Canvas.Top="194" Canvas.Left="300" Stroke="Black" Fill="White"
Height="20" Width="20"></Ellipse>
<Ellipse Canvas.Top="200" Canvas.Left="305" Stroke="Black" Fill="Black"
Height="10" Width="10"></Ellipse>
<Rectangle Canvas.Top="146" Canvas.Left="252" Stroke="Black" Fill="Blue"
Width="30" Height="70"/>
<Rectangle Canvas.Top="137" Canvas.Left="277" Stroke="Black" Fill="Blue"
Width="20" Height="90"/>

<Canvas.RenderTransform>
<TransformGroup>
<RotateTransform Angle="90" CenterX="470" CenterY="200"
x:Name="rotar"></RotateTransform>
</TransformGroup>
</Canvas.RenderTransform>
<Canvas.Triggers>
<EventTrigger RoutedEvent="Path.Loaded">
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetProperty="Angle"
RepeatBehavior="Forever" AutoReverse="True" From="115"
Storyboard.TargetName="rotar"
Duration="0:0:8" To="60" SpeedRatio="5"/>

<DoubleAnimation Storyboard.TargetProperty="Angle"
RepeatBehavior="Forever" AutoReverse="True" From="90"
Storyboard.TargetName="rotar"
BeginTime="0:0:10" Duration="0:0:10" To="-40" SpeedRatio="2"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Canvas.Triggers>
</Canvas>

<Path Canvas.Top="235" Canvas.Left="352" Stroke="Black" Fill="Yellow"


Data="M100,20 L100,160
Q60,140 40 180
L130,180
L130,20
L100,20
"></Path>
<Ellipse Stroke="Black" Fill="Red" Canvas.Top="150" Canvas.Left="433"
Height="140" Width="70"></Ellipse>
</Canvas>

</Window>

You might also like