Código XAML
<Window.Triggers>
<EventTrigger RoutedEvent="Window.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<DoubleAnimation Storyboard.TargetName="myImage" BeginStoryboard.TargetProperty="(Image.Width)" From="0" To="300" Duration="0:0:3" RepeatBehavior="Forever" AutoReverse="True"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</Window.Triggers>
<Image x:Name="myImage" Source="C:\Documents and Settings\AllUsers\Documentos\Mis imágenes\Imágenes de muestra\Puesta de sol.jpg"/>
No hay comentarios:
Publicar un comentario