Gets or sets the number of seconds that a Duration object represents.
The number of seconds that the Duration object represents.
This property is read/write. The default value is 0.
You cannot set the Seconds property as a distinct attribute of a Duration in XAML, because it is not possible to create a Duration element in XAML.
You can set or get the Seconds value in script by using object.property syntax, after getting an existing Duration from a property value such as TimeLine.Duration. If you set the value on a running animation, the value will apply immediately. The new current state of the animation will reflect the progress of the animation that had already run before the change, and that same progress will be applied toward the new Duration. Setting a Seconds value on an animation that previously had Automatic or Forever behavior has this same effect.
If the Duration for an animation is not explicitly set (either through scripting or XAML), the value of object.Duration will be null. In this case, scripting for object.Duration.Seconds will produce an error because object is null.