Skip to content

Class BehaviorTarget

Definition

Namespace: StardewUI.Framework.Behaviors
Assembly: StardewUI.dll

Encapsulates the target of an IViewBehavior.

public record BehaviorTarget : 
    IEquatable<StardewUI.Framework.Behaviors.BehaviorTarget>

Inheritance
Object ⇦ BehaviorTarget

Implements
IEquatable<BehaviorTarget>

Members

Constructors

Name Description
BehaviorTarget(IView, IViewState) Encapsulates the target of an IViewBehavior.

Properties

Name Description
EqualityContract
View The view that will receive the behavior.
ViewState State overrides for the View.

Details

Constructors

BehaviorTarget(IView, IViewState)

Encapsulates the target of an IViewBehavior.

public BehaviorTarget(StardewUI.IView View, StardewUI.Framework.Behaviors.IViewState ViewState);
Parameters

View   IView
The view that will receive the behavior.

ViewState   IViewState
State overrides for the View.


Properties

EqualityContract

protected System.Type EqualityContract { get; }
Property Value

Type


View

The view that will receive the behavior.

public StardewUI.IView View { get; set; }
Property Value

IView


ViewState

State overrides for the View.

public StardewUI.Framework.Behaviors.IViewState ViewState { get; set; }
Property Value

IViewState