Skip to content

Class NegatedCondition

Definition

Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll

Wrapper for an ICondition that negates its outcome.

public class NegatedCondition : StardewUI.Framework.Binding.ICondition, 
    System.IDisposable

Inheritance
Object ⇦ NegatedCondition

Implements
ICondition, IDisposable

Members

Constructors

Name Description
NegatedCondition(ICondition) Wrapper for an ICondition that negates its outcome.

Properties

Name Description
Context The context for evaluating the condition; i.e. the context of the node to which the condition applies.
Passed Whether or not the condition was passing as of the last Update().

Methods

Name Description
Dispose()
Update() Re-evaluates the condition and updates the Passed state.

Details

Constructors

NegatedCondition(ICondition)

Wrapper for an ICondition that negates its outcome.

public NegatedCondition(StardewUI.Framework.Binding.ICondition innerCondition);
Parameters

innerCondition   ICondition


Properties

Context

The context for evaluating the condition; i.e. the context of the node to which the condition applies.

public StardewUI.Framework.Binding.BindingContext Context { get; set; }
Property Value

BindingContext


Passed

Whether or not the condition was passing as of the last Update().

public bool Passed { get; }
Property Value

Boolean


Methods

Dispose()

public void Dispose();

Update()

Re-evaluates the condition and updates the Passed state.

public void Update();