Silverlight SDK for Microsoft Bing
CreateAnimation Method (storyboard, target, propertyName, from, to)
OverviewSystem.WindowsAnimationCreateAnimation(Storyboard, DependencyObject, String, Double, Double)
Creates a DoubleAnimation instance.
Declaration Syntax
C#Visual BasicVisual 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
)
Parameters
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
Return Value
A new DoubleAnimation instance.
Remarks
NOTE: This method does NOT append the timeline to the Storyboard children.

Assembly: System.Windows.Controls.Views.Toolkit (Module: System.Windows.Controls.Views.Toolkit) Version: 1.0.0.0 (1.0.0.0)