Class BoundViewDefaults
Definition
Namespace: StardewUI.Framework.Binding
Assembly: StardewUI.dll
View defaults that provide the current data-bound values for any bound attributes/properties and fall back to the original ("blank") view defaults for unbound properties.
Inheritance
Object ⇦ BoundViewDefaults
Implements
IViewDefaults
Members
Constructors
Name | Description |
---|---|
BoundViewDefaults(IViewDefaults, IEnumerable<IAttributeBinding>) | View defaults that provide the current data-bound values for any bound attributes/properties and fall back to the original ("blank") view defaults for unbound properties. |
Methods
Name | Description |
---|---|
GetDefaultValue<T>(string) | Gets the default value for the named property. |
Details
Constructors
BoundViewDefaults(IViewDefaults, IEnumerable<IAttributeBinding>)
View defaults that provide the current data-bound values for any bound attributes/properties and fall back to the original ("blank") view defaults for unbound properties.
public BoundViewDefaults(StardewUI.Framework.Descriptors.IViewDefaults original, System.Collections.Generic.IEnumerable<StardewUI.Framework.Binding.IAttributeBinding> attributes);
Parameters
original
IViewDefaults
The original or reference defaults for the managed view type.
attributes
IEnumerable<IAttributeBinding>
The bound property attributes for the view's node.
Methods
GetDefaultValue<T>(string)
Gets the default value for the named property.
Parameters
propertyName
string
The property name.
Returns
T
The default value of the specified property for a newly-created view.