NoesisGUI
 

🔹 EasingDoubleKeyFrame Class

namespace Noesis | MSDN

A class that enables you to associate easing functions with a DoubleAnimationUsingKeyFrames key frame animation.

The following example shows how to use key frames with easing functions associated with them to create an animation of a rectangle that contracts upward, slows down, then expands downward (as though falling), and then bounces to a stop.

<Rectangle Name="myRectangle" Width="200" Height="200" Fill="Blue">
  <Rectangle.Triggers>
    <EventTrigger RoutedEvent="Rectangle.MouseDown">
      <BeginStoryboard>
        <Storyboard>
          <DoubleAnimationUsingKeyFrames
            Storyboard.TargetProperty="Height"
            Storyboard.TargetName="myRectangle">

            <!-- This keyframe animates the ellipse up to the crest
                             where it slows down and stops. -->
            <EasingDoubleKeyFrame Value="30" KeyTime="00:00:02">
              <EasingDoubleKeyFrame.EasingFunction>
                <CubicEase EasingMode="EaseOut"/>
              </EasingDoubleKeyFrame.EasingFunction>
            </EasingDoubleKeyFrame>

            <!-- This keyframe animates the ellipse back down and makes
                             it bounce. -->
            <EasingDoubleKeyFrame Value="200" KeyTime="00:00:06">
              <EasingDoubleKeyFrame.EasingFunction>
                <BounceEase Bounces="5" EasingMode="EaseOut"/>
              </EasingDoubleKeyFrame.EasingFunction>
            </EasingDoubleKeyFrame>

          </DoubleAnimationUsingKeyFrames>
        </Storyboard>
      </BeginStoryboard>
    </EventTrigger>
  </Rectangle.Triggers>
</Rectangle>

This class is used as part of a DoubleKeyFrameCollection in conjunction with a DoubleAnimationUsingKeyFrames to animate a Double property value along a set of key frames. This DoubleKeyFrame interpolates between the Double value of the previous key frame and its own value linearly with an easing function to produce its output value.

Inheritance Hierarchy

EasingDoubleKeyFrame

📚 Class Hierarchy Index

Properties

Name Description
 EasingFunction Gets or sets the easing function applied to the key frame

 Dependency Property    Reflection Property


From DoubleKeyFrame

Name Description
 Value Gets or sets the key frame's target value

 Dependency Property    Reflection Property

From BaseKeyFrame

Name Description
 KeyTime Gets or sets the time at which the key frame's target Value should be reached

 Dependency Property    Reflection Property

From Freezable

Name Description
 CanFreeze Gets a value that indicates whether the object can be made unmodifiable.
 IsFrozen Gets a value that indicates whether the object is currently modifiable.

 Dependency Property    Reflection Property

From DispatcherObject

Name Description
 ThreadId Gets the thread this DispatcherObject is associated with. Returns NoThreadId when this object is not attached to any thread.

 Dependency Property    Reflection Property

Attached Properties

EasingDoubleKeyFrame has no attached properties

Methods

From DoubleKeyFrame

Name Description
 InterpolateValue(float, float) Returns the interpolated value of a specific key frame at the progress increment provided

From Freezable

Name Description
 Clone() Creates a modifiable clone of the Freezable, making deep copies of the object's values. When copying the object's dependency properties, this method copies expressions (which might no longer resolve) but not animations or their current values. The cloned Freezable::IsFrozen property is false even if the source's IsFrozen property is true.
 CloneCurrentValue() Creates a modifiable clone (deep copy) of the Freezable using its current values. The cloned object's IsFrozen property is false even if the source's IsFrozen property is true.
 Freeze() Makes the current object unmodifiable and sets its IsFrozen property to true.
 GetAsFrozen() Creates a frozen copy of the Freezable, using base (non-animated) property values. Because the copy is frozen, any frozen sub-objects are copied by reference. The copy's IsFrozen property is set to true. Throws if the Freezable cannot be frozen because it contains expressions or animated properties.
 GetCurrentValueAsFrozen() Creates a frozen copy of the Freezable using current property values. Because the copy is frozen, any frozen sub-objects are copied by reference. The copy's IsFrozen property is set to true.

From DependencyObject

Name Description
 ClearAnimation(const DependencyProperty*) Clears the animation value of a property
 ClearLocalValue(const DependencyProperty*) Clears the local value of a property The property to be cleared is specified by a DependencyProperty identifier
 CoerceValue(const DependencyProperty*) Coerces and validates the effective property value
 DependencyPropertyChanged() Returns the PropertyChanged event
 Destroyed() Destroyed delegate is raised when object is going to be destroyed
 GetBaseValue(const DependencyProperty*) Returns the base value without animation nor coerce (this never returns Expression like GetLocalValue)
 GetExpression(const DependencyProperty*) Gets the expression, if any, used to evaluate the specified property value
 GetLocalValue(const DependencyProperty*) Returns the local value of a dependency property, if it exists
 GetValue(const DependencyProperty*) Returns the current effective value of a dependency property on this instance of a DependencyObject
 GetValueObject(const DependencyProperty*) Returns the current effective value of a dependency property on this instance of a DependencyObject as a boxed value
 GetValueProvider(const DependencyProperty*) Gets the provider that returns the effective value for the specified dependency property
 HasAnimatedProperties() Returns true if there is any animated property
 InvalidateProperty(const DependencyProperty*, uint8_t) Re-evaluates the effective value for the specified dependency property if necessary If null is passed, a full re-evaluation could be needed
 IsCached(const DependencyProperty*, uint8_t*) Returns if the value is stored in the cache. If true, the priority is returned in the provider field
 IsSealed() Gets a value that indicates whether this instance is currently sealed (read-only)
 SetAnimation(const DependencyProperty*, SetValueType<T>::Type) Sets the animated value of a property
 SetCurrentValue(const DependencyProperty*, SetValueType<T>::Type) Sets the current value of a dependency property. The current value is set on the coerce field, without modifying source or animated value
 SetCurrentValueObject(const DependencyProperty*, BaseComponent*) Sets the current value of a dependency property using a boxed value
 SetExpression(const DependencyProperty*, Expression*) Sets the expression to be evaluated dynamically to obtain the value of the property
 SetValue(const DependencyProperty*, SetValueType<T>::Type) Sets the local value of a dependency property
 SetValueObject(const DependencyProperty*, BaseComponent*) Sets the local value (boxed) of a dependency property

From DispatcherObject

Name Description
 CheckAccess() Determines whether the calling thread has access to this DispatcherObject
 VerifyAccess() Enforces that the calling thread has access to this DispatcherObject
 
© 2017 Noesis Technologies