Xceed Toolkit Plus for WPF v4.6 Documentation
Evaluate Method (PennerEquation)


Xceed.Wpf.Toolkit Assembly > Xceed.Wpf.Toolkit.Media.Animation Namespace > PennerEquation Class : Evaluate Method
current time of the animation clock within its current iteration
begining value for the animation
ending value for the animation
The Duration property specifies the simple duration for a Timeline. The simple duration is the length of time that it takes to complete a single forward iteration of the time segment.
This method will invoke a delegate which in turn points to a method with the actual implementation of the equation. If we need to create a custom animation one of the methods that needs to be implemented/overrided is GetCurrentValueCore. When a PennerEquation is set as the "Equation" property of a custom animation like IterativeDoubleAnimation, this method is called from the GetCurrentValueCore method of the custom animation.
Syntax
'Declaration
 
Public Overrides Function Evaluate( _

   ByVal currentTime As TimeSpan, _

   ByVal from As Double, _

   ByVal to As Double, _

   ByVal duration As TimeSpan _

) As Double
'Usage
 
Dim instance As PennerEquation

Dim currentTime As TimeSpan

Dim from As Double

Dim to As Double

Dim duration As TimeSpan

Dim value As Double

 

value = instance.Evaluate(currentTime, from, to, duration)
public override double Evaluate( 

   TimeSpan currentTime,

   double from,

   double to,

   TimeSpan duration

)

Parameters

currentTime
current time of the animation clock within its current iteration
from
begining value for the animation
to
ending value for the animation
duration
The Duration property specifies the simple duration for a Timeline. The simple duration is the length of time that it takes to complete a single forward iteration of the time segment.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PennerEquation Class
PennerEquation Members
Base Implementation in Evaluate