Mega Code Archive

 
Categories / VB.Net Tutorial / WPF
 

Morphing an Image

<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="Animation">     <Grid xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation">       <Grid.Triggers>         <EventTrigger RoutedEvent="Grid.Loaded">           <BeginStoryboard>             <Storyboard TargetName="jim1" TargetProperty="Opacity">               <DoubleAnimation From="1" To="0" Duration="0:0:4"               AutoReverse="True" RepeatBehavior="Forever"/>             </Storyboard>           </BeginStoryboard>         </EventTrigger>       </Grid.Triggers>       <Image Name="jim1" Source="c:\image.gif"/>     </Grid> </Window>