Interface IAttributeBindingFactory
Definition
Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll
Service for creating IAttributeBinding instances for the individual attributes of a bound view.
Members
Methods
| Name | Description |
|---|---|
| TryCreateBinding(IViewDescriptor, IAttribute, BindingContext, IResolutionScope) | Attempts to creates a new attribute binding. |
Details
Methods
TryCreateBinding(IViewDescriptor, IAttribute, BindingContext, IResolutionScope)
Attempts to creates a new attribute binding.
StardewUI.Framework.Binding.IAttributeBinding TryCreateBinding(StardewUI.Framework.Descriptors.IViewDescriptor viewDescriptor, StardewUI.Framework.Dom.IAttribute attribute, StardewUI.Framework.Binding.BindingContext context, StardewUI.Framework.Content.IResolutionScope resolutionScope);
Parameters
viewDescriptor IViewDescriptor
Descriptor for the bound view, providing access to its properties.
attribute IAttribute
The attribute data.
context BindingContext
The binding context, including the bound data and descriptor for the data type.
resolutionScope IResolutionScope
Scope for resolving externalized attributes, such as translation keys.
Returns
The created binding, or null if the arguments do not support creating a binding, such as an attribute bound to a null value of context.