Struct LayoutFrameContext
Immutable services and timing shared by every view visited during one render-surface update.
public readonly struct LayoutFrameContext
- Inherited Members
Constructors
LayoutFrameContext(TimeSpan, TimeSpan, IMeasureContext?, IContext?, InstrumentsAccessor)
Initializes a frame context.
public LayoutFrameContext(TimeSpan previousTime, TimeSpan currentTime, IMeasureContext? measureContext, IContext? renderContext, InstrumentsAccessor instruments)
Parameters
previousTimeTimeSpancurrentTimeTimeSpanmeasureContextIMeasureContextrenderContextIContextinstrumentsInstrumentsAccessor
Properties
CurrentTime
Time of this frame.
public TimeSpan CurrentTime { get; }
Property Value
Instruments
Instrumentation associated with this render surface.
public InstrumentsAccessor Instruments { get; }
Property Value
MeasureContext
Measurement services for this render surface.
public IMeasureContext? MeasureContext { get; }
Property Value
PreviousTime
Time of the preceding frame.
public TimeSpan PreviousTime { get; }
Property Value
RenderContext
Rendering context for this render surface.
public IContext? RenderContext { get; }