MediaTimeline.GetNaturalDurationCore(Clock) 方法

定义

从指定的时钟检索 Duration

protected:
 override System::Windows::Duration GetNaturalDurationCore(System::Windows::Media::Animation::Clock ^ clock);
protected override System.Windows.Duration GetNaturalDurationCore (System.Windows.Media.Animation.Clock clock);
override this.GetNaturalDurationCore : System.Windows.Media.Animation.Clock -> System.Windows.Duration
Protected Overrides Function GetNaturalDurationCore (clock As Clock) As Duration

参数

clock
Clock

需要其自然持续时间的 Clock

返回

Duration

如果 clockMediaClock,则为与 clock 关联的 NaturalDurationMediaPlayer 值;如果 clock 不为 Automatic,则为 MediaClock

适用于