StringAnimationUsingKeyFrames Class


Animates the value of a String property along a set of KeyFrames over a specified Duration.

public class StringAnimationUsingKeyFrames : System.Windows.Media.Animation.StringAnimationBase, System.Windows.Markup.IAddChild, System.Windows.Media.Animation.IKeyFrameAnimation


A key frame animation's target values are defined by its KeyFrames property, which contains a collection of StringKeyFrame objects. Each StringKeyFrame defines a segment of the animation with its own target Value and KeyTime. When the animation runs, it progresses from one key value to the next at the specified key times.



Initializes a new instance of the StringAnimationUsingKeyFrames class.


AccelerationRatio Inherited from Timeline
AutoReverse Inherited from Timeline
BeginTime Inherited from Timeline
CanFreeze Inherited from Freezable
DecelerationRatio Inherited from Timeline
DependencyObjectType Inherited from DependencyObject
Dispatcher Inherited from DispatcherObject
Duration Inherited from Timeline
FillBehavior Inherited from Timeline
HasAnimatedProperties Inherited from Animatable
IsDestinationDefault Inherited from AnimationTimeline
IsFrozen Inherited from Freezable
IsSealed Inherited from DependencyObject

Gets or sets the collection of StringKeyFrame objects that define the animation.

Name Inherited from Timeline
RepeatBehavior Inherited from Timeline
SpeedRatio Inherited from Timeline
TargetPropertyType Inherited from StringAnimationBase



Adds a child StringKeyFrame to this StringAnimationUsingKeyFrames.


Adds a text string as a child of this StringAnimationUsingKeyFrames.

AllocateClock() Inherited from AnimationTimeline
ApplyAnimationClock(DependencyProperty, AnimationClock) Inherited from Animatable
ApplyAnimationClock(DependencyProperty, AnimationClock, HandoffBehavior) Inherited from Animatable
BeginAnimation(DependencyProperty, AnimationTimeline) Inherited from Animatable
BeginAnimation(DependencyProperty, AnimationTimeline, HandoffBehavior) Inherited from Animatable
CheckAccess() Inherited from DispatcherObject
ClearValue(DependencyProperty) Inherited from DependencyObject
ClearValue(DependencyPropertyKey) Inherited from DependencyObject

Creates a modifiable clone of this StringAnimationUsingKeyFrames, making deep copies of this object's values. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.


Makes this instance a deep copy of the specified StringAnimationUsingKeyFrames. When copying dependency properties, this method copies resource references and data bindings (but they might no longer resolve) but not animations or their current values.


Creates a modifiable clone of this StringAnimationUsingKeyFrames object, making deep copies of this object's current values. Resource references, data bindings, and animations are not copied, but their current values are.


Makes this instance a modifiable deep copy of the specified StringAnimationUsingKeyFrames using current property values. Resource references, data bindings, and animations are not copied, but their current values are.

CoerceValue(DependencyProperty) Inherited from DependencyObject
CreateClock() Inherited from AnimationTimeline
CreateClock(Boolean) Inherited from Timeline
CreateInstance() Inherited from Freezable

Creates a new instance of StringAnimationUsingKeyFrames.

Equals(Object) Inherited from DependencyObject
Equals(Object, Object) Inherited from Object
Freeze() Inherited from Freezable
Freeze(Freezable, Boolean) Inherited from Freezable

Makes this instance of StringAnimationUsingKeyFrames object unmodifiable or determines whether it can be made unmodifiable..

GetAnimationBaseValue(DependencyProperty) Inherited from Animatable
GetAsFrozen() Inherited from Freezable

Makes this instance a clone of the specified StringAnimationUsingKeyFrames object.

GetCurrentValue(Object, Object, AnimationClock) Inherited from StringAnimationBase
GetCurrentValue(String, String, AnimationClock) Inherited from StringAnimationBase
GetCurrentValueAsFrozen() Inherited from Freezable

Makes this instance a frozen clone of the specified StringAnimationUsingKeyFrames. Resource references, data bindings, and animations are not copied, but their current values are.

GetCurrentValueCore(String, String, AnimationClock)

Calculates a value that represents the current value of the property being animated, as determined by this instance of StringAnimationUsingKeyFrames.

GetDesiredFrameRate(Timeline) Inherited from Timeline
GetHashCode() Inherited from DependencyObject
GetLocalValueEnumerator() Inherited from DependencyObject
GetNaturalDuration(Clock) Inherited from Timeline

Provide a custom natural Duration when the Duration property is set to Automatic.

GetType() Inherited from Object
GetValue(DependencyProperty) Inherited from DependencyObject
InvalidateProperty(DependencyProperty) Inherited from DependencyObject
MemberwiseClone() Inherited from Object

Called when the current StringAnimationUsingKeyFrames object is modified.

OnFreezablePropertyChanged(DependencyObject, DependencyObject) Inherited from Freezable
OnFreezablePropertyChanged(DependencyObject, DependencyObject, DependencyProperty) Inherited from Freezable
OnPropertyChanged(DependencyPropertyChangedEventArgs) Inherited from Freezable
ReadLocalValue(DependencyProperty) Inherited from DependencyObject
ReadPreamble() Inherited from Freezable
ReferenceEquals(Object, Object) Inherited from Object
SetCurrentValue(DependencyProperty, Object) Inherited from DependencyObject
SetDesiredFrameRate(Timeline, Nullable<Int32>) Inherited from Timeline
SetValue(DependencyProperty, Object) Inherited from DependencyObject
SetValue(DependencyPropertyKey, Object) Inherited from DependencyObject

Returns true if the value of the KeyFrames property of this instance of StringAnimationUsingKeyFrames should be value-serialized.

ShouldSerializeProperty(DependencyProperty) Inherited from DependencyObject
ShouldSerializeStoredWeakReference(DependencyObject) Inherited from Animatable
ToString() Inherited from Object
VerifyAccess() Inherited from DispatcherObject
WritePostscript() Inherited from Freezable
WritePreamble() Inherited from Freezable

Explicit Interface Implementations


Adds a child object.


Adds the text content of a node to the object.


Gets or sets an ordered collection P:System.Windows.Media.Animation.IKeyFrameAnimation.KeyFrames associated with this animation sequence.


Changed Inherited from Freezable
Completed Inherited from Timeline
CurrentGlobalSpeedInvalidated Inherited from Timeline
CurrentStateInvalidated Inherited from Timeline
CurrentTimeInvalidated Inherited from Timeline
RemoveRequested Inherited from Timeline


AccelerationRatioProperty Inherited from Timeline
AutoReverseProperty Inherited from Timeline
BeginTimeProperty Inherited from Timeline
DecelerationRatioProperty Inherited from Timeline
DesiredFrameRateProperty Inherited from Timeline
DurationProperty Inherited from Timeline
FillBehaviorProperty Inherited from Timeline
IsAdditiveProperty Inherited from AnimationTimeline
IsCumulativeProperty Inherited from AnimationTimeline
NameProperty Inherited from Timeline
RepeatBehaviorProperty Inherited from Timeline
SpeedRatioProperty Inherited from Timeline

Applies to