Mega Code Archive

 
Categories / C# / WPF
 

Parent and child timelines with default HoldEnd FillBehavior

<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"       xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"       HorizontalAlignment="Stretch" VerticalAlignment="Stretch">     <Ellipse Name="myEllipse" Height="100" Fill="Red">       <Ellipse.Triggers>         <EventTrigger RoutedEvent="Ellipse.Loaded">           <BeginStoryboard>             <Storyboard>                                  <ParallelTimeline BeginTime="0:0:2">                   <DoubleAnimation From="10" To="300" Duration="0:0:5"                                    Storyboard.TargetProperty="(Ellipse.Width)" />                 </ParallelTimeline>                              </Storyboard>           </BeginStoryboard>         </EventTrigger>       </Ellipse.Triggers>     </Ellipse> </Page>