Assembly: System.Windows (in System.Windows.dll)
Thetype exposes the following members.
|AutoReverse||Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration. (Inherited from Timeline.)|
|BeginTime||Gets or sets the time at which this Timeline should begin. (Inherited from Timeline.)|
|By||Gets or sets the total amount by which the animation changes its starting value.|
|Dispatcher||Gets the Dispatcher this object is associated with. (Inherited from DependencyObject.)|
|Duration||Gets or sets the length of time for which this timeline plays, not counting repetitions. (Inherited from Timeline.)|
|EasingFunction||Gets or sets the easing function applied to this animation.|
|FillBehavior||Gets or sets a value that specifies how the animation behaves after it reaches the end of its active period. (Inherited from Timeline.)|
|From||Gets or sets the animation's starting value.|
|RepeatBehavior||Gets or sets the repeating behavior of this timeline. (Inherited from Timeline.)|
|SpeedRatio||Gets or sets the rate, relative to its parent, at which time progresses for this Timeline. (Inherited from Timeline.)|
|To||Gets or sets the animation's ending value.|
|CheckAccess||Determines whether the calling thread has access to this object. (Inherited from DependencyObject.)|
|ClearValue||Clears the local value of a dependency property. (Inherited from DependencyObject.)|
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetAnimationBaseValue||Returns any base value established for a Silverlight dependency property, which would apply in cases where an animation is not active. (Inherited from DependencyObject.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetType||Gets the Type of the current instance. (Inherited from Object.)|
|GetValue||Returns the current effective value of a dependency property from a DependencyObject. (Inherited from DependencyObject.)|
|MemberwiseClone||Creates a shallow copy of the current Object. (Inherited from Object.)|
|ReadLocalValue||Returns the local value of a dependency property, if a local value is set. (Inherited from DependencyObject.)|
|SetValue||Sets the local value of a dependency property on a DependencyObject. (Inherited from DependencyObject.)|
|ToString||Returns a string that represents the current object. (Inherited from Object.)|
An animation updates the value of a property over a period of time. An animation effect can be subtle, such as moving a Shape a few pixels left and right, or dramatic, such as enlarging an object to 200 times its original size while spinning it and changing its color. To create an animation, you associate an animation with an object's property value.
The class creates a transition between two target values. To set its target values, use its From, To, and By properties. The following table summarizes how the From, To, and By properties can be used together or separately to determine an animation's target values.
The animation progresses from the value specified by the From property to the base value of the property being animated or to a previous animation's output value, depending on how the previous animation is configured.
The animation progresses from the animated property's base value or a previous animation's output value to the value specified by the To property.
The animation progresses from the base value of the property being animated or a previous animation's output value to the sum of that value and the value specified by the By property.
To use other interpolation methods or animate between more than two target values, use a DoubleAnimationUsingKeyFrames object.
The following example shows how to use DoubleAnimation to create a rectangle that fades in and out of view after it is loaded.
<StackPanel> <StackPanel.Resources> <Storyboard x:Name="myStoryboard"> <DoubleAnimation Storyboard.TargetName="MyAnimatedRectangle" Storyboard.TargetProperty="Opacity" From="1.0" To="0.0" Duration="0:0:5" AutoReverse="True" RepeatBehavior="Forever" /> </Storyboard> </StackPanel.Resources> <Rectangle Loaded="Start_Animation" x:Name="MyAnimatedRectangle" Width="100" Height="100" Fill="Blue" /> </StackPanel>
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.