Skip to content

Interface IViewBinding

Definition

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

Represents the binding state of an entire view; provides a single method to perform a once-per-frame update.

public interface IViewBinding : System.IDisposable

Implements
IDisposable

Members

Properties

Name Description
Attributes The specific attributes bound for the attached view.

Methods

Name Description
Update() Updates the view, including all bound attributes.

Details

Properties

Attributes

The specific attributes bound for the attached view.

System.Collections.Generic.IReadOnlyList<StardewUI.Framework.Binding.IAttributeBinding> Attributes { get; }
Property Value

IReadOnlyList<IAttributeBinding>

Remarks

Per-attribute updates are encapsulated in the Update() method, so this is normally only needed for inspecting the state of bindings, e.g. to build a BoundViewDefaults instance.


Methods

Update()

Updates the view, including all bound attributes.

bool Update();
Returns

Boolean

true if any updates were performed; false if there was no update due to having no underlying changes in the bound data or assets.