This documentation is archived and is not being maintained.

MatrixKeyFrame.InterpolateValue Method

Returns the interpolated value of a specific key frame at the progress increment provided.

Namespace: System.Windows.Media.Animation
Assembly: PresentationCore (in presentationcore.dll)

public Matrix InterpolateValue (
	Matrix baseValue,
	double keyFrameProgress
public Matrix InterpolateValue (
	Matrix baseValue, 
	double keyFrameProgress
public function InterpolateValue (
	baseValue : Matrix, 
	keyFrameProgress : double
) : Matrix
You cannot use methods in XAML.



The value to animate from.


A value between 0.0 and 1.0, inclusive, that specifies the percentage of time that has elapsed for this key frame.

Return Value

The output value of this key frame given the specified base value and progress.

Exception typeCondition


Occurs if keyFrameProgress is not between 0.0 and 1.0, inclusive.

The base value is typically the initial value of the property being animated or the Value of the previous key frame.

Most implementations will return the value of baseValue when keyFrameProgress is 0.0.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0