Skip to content

StardewUI.Framework.Sources Namespace

Classes

Name Description
AssetValueSource<T> Value source that looks up an asset registered with SMAPI's content manager.
ConstantValueSource<T> Value source with a constant value, generally used to hold the literal (text) value of an attribute.
ContextPropertyValueSource<T> Value source that obtains its value from a context (or "model") property.
ConvertedValueSource Helpers for creating instances of the generic ConvertedValueSource<TSource, T> when some of the types are unknown at compile time.
ConvertedValueSource<TSource, T> A value source that wraps another IValueSource<T> and performs automatic conversion.
TranslationValueSource Value source that reads the localized string from a translation key.
ValueSourceFactory Default implementation of the IValueSourceFactory supporting all binding types.

Interfaces

Name Description
IValueSource Holds the type-independent data of an IValueSource<T>.
IValueSource<T> Abstract representation of the source of any value, generally as used in a data binding.
IValueSourceFactory Provides methods to look up runtime value types and build appropriate sources based on their binding information.