You probably want to use TimeSpan .
TimeSpan is the general data structure in the System namespace. Duration is a specialized WPF animation framework. Description of Duration summarizes:
Represents the time during which Timeline is active.
If you want to do just that (specify the duration of the WPF animation timeline), use Duration . Otherwise, use TimeSpan .
source share