public ref class ThicknessAnimation : System::Windows::Media::Animation::ThicknessAnimationBase
public class ThicknessAnimation : System.Windows.Media.Animation.ThicknessAnimationBase
type ThicknessAnimation = class inherit ThicknessAnimationBase
Public Class ThicknessAnimation Inherits ThicknessAnimationBase
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 in Windows Presentation Foundation (WPF), you associate an animation with an object's property value.
The ThicknessAnimation 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 may be used together or separately to determine an animation's target values.
|Properties specified||Resulting behavior|
|From||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.|
|From and To||The animation progresses from the value specified by the From property to the value specified by the To property.|
|From and By||The animation progresses from the value specified by the From property to the value specified by the sum of the From and By properties.|
|To||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.|
|By||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 ThicknessAnimationUsingKeyFrames object.
For information about applying multiple animations to a single property, see Key-Frame Animations Overview.
Because the ThicknessAnimation class inherits from Freezable, ThicknessAnimation objects gain several special features, which include the following: they can be declared as , shared among multiple objects, made read-only to improve performance, cloned, and made thread-safe. For more information about the different features provided by Freezable objects, see the Freezable Objects Overview.
|ByProperty ByProperty ByProperty ByProperty||
Identifies the By dependency property.
|EasingFunctionProperty EasingFunctionProperty EasingFunctionProperty EasingFunctionProperty||
Identifies the EasingFunction dependency property.
|FromProperty FromProperty FromProperty FromProperty||
Identifies the From dependency property.
|ToProperty ToProperty ToProperty ToProperty||
Identifies the To dependency property.
|AccelerationRatio AccelerationRatio AccelerationRatio AccelerationRatio||
Gets or sets a value specifying the percentage of the timeline's Duration spent accelerating the passage of time from zero to its maximum rate.(Inherited from Timeline)
|AutoReverse AutoReverse AutoReverse AutoReverse||
Gets or sets a value that indicates whether the timeline plays in reverse after it completes a forward iteration.(Inherited from Timeline)
|BeginTime BeginTime BeginTime BeginTime||
Gets or sets the time at which this Timeline should begin.(Inherited from Timeline)
|By By By By||
Gets or sets the total amount by which the animation changes its starting value.
|CanFreeze CanFreeze CanFreeze CanFreeze||
Gets a value that indicates whether the object can be made unmodifiable.(Inherited from Freezable)
|DecelerationRatio DecelerationRatio DecelerationRatio DecelerationRatio||
Gets or sets a value specifying the percentage of the timeline's Duration spent decelerating the passage of time from its maximum rate to zero.(Inherited from Timeline)
|DependencyObjectType DependencyObjectType DependencyObjectType DependencyObjectType||
Gets the DependencyObjectType that wraps the CLR type of this instance.(Inherited from DependencyObject)
|Dispatcher Dispatcher Dispatcher Dispatcher||DispatcherObject)|
|Duration Duration Duration Duration||
Gets or sets the length of time for which this timeline plays, not counting repetitions.(Inherited from Timeline)
|EasingFunction EasingFunction EasingFunction EasingFunction||
Gets or sets the easing function applied to this animation.
|FillBehavior FillBehavior FillBehavior FillBehavior||
Gets or sets a value that specifies how the Timeline behaves after it reaches the end of its active period.(Inherited from Timeline)
|From From From From||
Gets or sets the animation's starting value.
|HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties HasAnimatedProperties||
Gets a value that indicates whether one or more AnimationClock objects is associated with any of this object's dependency properties.(Inherited from Animatable)
|IsAdditive IsAdditive IsAdditive IsAdditive||
Gets or sets a value that indicates whether the target property's current value should be added to this animation's starting value.
|IsCumulative IsCumulative IsCumulative IsCumulative||
Gets or sets a value that specifies whether the animation's value accumulates when it repeats.
|IsDestinationDefault IsDestinationDefault IsDestinationDefault IsDestinationDefault||
Gets a value that indicates whether this animation uses the defaultDestinationValue parameter of the GetCurrentValue(Object, Object, AnimationClock) method as its destination value.(Inherited from AnimationTimeline)
|IsFrozen IsFrozen IsFrozen IsFrozen||
Gets a value that indicates whether the object is currently modifiable.(Inherited from Freezable)
|IsSealed IsSealed IsSealed IsSealed||
Gets a value that indicates whether this instance is currently sealed (read-only).(Inherited from DependencyObject)
|Name Name Name Name||
Gets or sets the name of this Timeline.(Inherited from Timeline)
|RepeatBehavior RepeatBehavior RepeatBehavior RepeatBehavior||
Gets or sets the repeating behavior of this timeline.(Inherited from Timeline)
|SpeedRatio SpeedRatio SpeedRatio SpeedRatio||
Gets or sets the rate, relative to its parent, at which time progresses for this Timeline.(Inherited from Timeline)
|TargetPropertyType TargetPropertyType TargetPropertyType TargetPropertyType||
Gets the type of value this animation generates.(Inherited from ThicknessAnimationBase)
|To To To To||
Gets or sets the animation's ending value.
|Changed Changed Changed Changed||
Occurs when the Freezable or an object it contains is modified.(Inherited from Freezable)
|Completed Completed Completed Completed||
Occurs when this timeline has completely finished playing: it will no longer enter its active period.(Inherited from Timeline)
|CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated CurrentGlobalSpeedInvalidated||
Occurs when the rate at which time progresses for the timeline's clock changes.(Inherited from Timeline)
|CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated CurrentStateInvalidated||Timeline)|
|CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated CurrentTimeInvalidated||Timeline)|
|RemoveRequested RemoveRequested RemoveRequested RemoveRequested||
Occurs when the clock created for this timeline or one of its parent timelines is removed.(Inherited from Timeline)