QuaternionAnimationUsingKeyFrames.GetNaturalDurationCore Method

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

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

protected override sealed Duration GetNaturalDurationCore (
	Clock clock
protected final Duration GetNaturalDurationCore (
	Clock clock
protected override final function GetNaturalDurationCore (
	clock : Clock
) : Duration
You cannot use methods in XAML.



The Clock whose natural duration is desired.

Return Value

If the last key frame of this animation is a KeyTime, then this value is used as the NaturalDuration; otherwise it will be one second.

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

Community Additions