AnimationProgressEventArgs

EventArgsReferences
Progress of a running animation. Raised once per frame, on the thread driving the animation rather than the user interface thread.

Properties

Animation

#
public Animation Animation { get; }
Gets the animation being run.

Elapsed

#
public TimeSpan Elapsed { get; }
Gets how long the run has been going.

Files

#
public string[] Files { get; }
Gets the images this frame wrote, by full path. Two entries when a run captures both the viewport and the canvas, and none when the frame failed or was skipped.

Frame

#
public int Frame { get; }
Gets the zero-based index of the frame which just finished.

FrameCount

#
public int FrameCount { get; }
Gets the total number of frames in the run.

Message

#
public string Message { get; }
Gets a description of anything which went wrong with this frame, or an empty string.

Progress

#
public double Progress { get; }
Gets the normalised progress of the run.

Remaining

#
public TimeSpan Remaining { get; }
Gets an estimate of the time left, based on the frames actually computed so far.

Skipped

#
public bool Skipped { get; }
Gets whether this frame was already on disk and therefore skipped.

Values

#
public string[] Values { get; }
Gets what each animated object was set to for this frame, one entry per object, already written out for reading. Empty for a frame which was skipped, since a skipped frame sets nothing.