StringAnimationUsingKeyFrames Class

Definition

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

[System.Windows.Markup.ContentProperty("KeyFrames")]
public class StringAnimationUsingKeyFrames : System.Windows.Media.Animation.StringAnimationBase, System.Windows.Markup.IAddChild, System.Windows.Media.Animation.IKeyFrameAnimation
Inheritance
Attributes
Implements

Remarks

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.

Constructors

StringAnimationUsingKeyFrames()

Initializes a new instance of the StringAnimationUsingKeyFrames class.

Properties

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
KeyFrames

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

Methods

AddChild(Object)

Adds a child StringKeyFrame to this StringAnimationUsingKeyFrames.

AddText(String)

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
Clone()

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.

CloneCore(Freezable)

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.

CloneCurrentValue()

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.

CloneCurrentValueCore(Freezable)

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
CreateInstanceCore()

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
FreezeCore(Boolean)

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

GetAnimationBaseValue(DependencyProperty) Inherited from Animatable
GetAsFrozen() Inherited from Freezable
GetAsFrozenCore(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
GetCurrentValueAsFrozenCore(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
GetNaturalDurationCore(Clock)

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
OnChanged()

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
ShouldSerializeKeyFrames()

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

IAddChild.AddChild(Object)

Adds a child object.

IAddChild.AddText(String)

Adds the text content of a node to the object.

IKeyFrameAnimation.KeyFrames

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

Events

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

Fields

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