Table of Contents

Class InvalidationRequest

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Represents an invalidation request for a control.

public class InvalidationRequest
Inheritance
InvalidationRequest
Inherited Members

Constructors

InvalidationRequest(IWindowControl, InvalidationReason, bool)

Initializes a new instance of the InvalidationRequest class.

public InvalidationRequest(IWindowControl control, InvalidationReason reason, bool propagateToParent = true)

Parameters

control IWindowControl

The control that needs invalidation.

reason InvalidationReason

The reason for the invalidation.

propagateToParent bool

Whether to propagate the invalidation to the parent container. Defaults to true.

Properties

Control

Gets the control that needs invalidation.

public IWindowControl Control { get; }

Property Value

IWindowControl

PropagateToParent

Gets whether this invalidation should propagate to the parent container.

public bool PropagateToParent { get; }

Property Value

bool

Reason

Gets the reason for the invalidation.

public InvalidationReason Reason { get; }

Property Value

InvalidationReason

RequestTime

Gets the UTC time when the invalidation was requested.

public DateTime RequestTime { get; }

Property Value

DateTime