Struct FrameEventRef
Represents a platform-level event dispatched once per frame, providing timing information used for driving animations and visual updates.
public ref struct FrameEventRef
- Inherited Members
Remarks
This event is emitted from the Actual
window and forwarded
to the Abstract
window, typically during the animation phase
of the UI lifecycle. It provides both the previous and next frame times,
along with the time delta between them. Consumers can use this data
to advance animations or perform time-based layout updates.
Constructors
FrameEventRef(TimeSpan, TimeSpan)
Initializes a new instance of the FrameEventRef struct with the given previous and next frame timestamps.
public FrameEventRef(TimeSpan previous, TimeSpan next)
Parameters
previous
TimeSpanThe timestamp of the previous frame.
next
TimeSpanThe timestamp of the upcoming frame.
Fields
Delta
The time elapsed between the previous and next frames.
public TimeSpan Delta
Field Value
Next
The timestamp of the upcoming frame.
public TimeSpan Next
Field Value
Previous
The timestamp of the previous frame.
public TimeSpan Previous