Creates a DoubleAnimation instance.

C# | Visual Basic | Visual C++ |
public static DoubleAnimation CreateAnimation( Storyboard storyboard, DependencyObject target, string propertyName, double from, double to )
Public Shared Function CreateAnimation ( _ storyboard As Storyboard, _ target As DependencyObject, _ propertyName As String, _ from As Double, _ to As Double _ ) As DoubleAnimation
public: static DoubleAnimation^ CreateAnimation( Storyboard^ storyboard, DependencyObject^ target, String^ propertyName, double from, double to )

- storyboard (Storyboard)
- The storyboard to which
- target (DependencyObject)
- The target object whnich the timeline will animate
- propertyName (String)
- The target property which the timeline will animate
- from (Double)
- The starting double value for the timeline
- to (Double)
- The ending double value for the timeline

A new DoubleAnimation instance.

NOTE: This method does NOT append the timeline to the Storyboard children.