[]
Represents a converter that adapts a source type to a target type using a specified function.
public abstract class AdapterConverter<TSource, TTarget> : IValueConverter
Name | Description |
---|---|
TSource | The original type to be converted. |
TTarget | The final type after conversion. |
Name | Description |
---|---|
AdapterConverter(Func<TSource, TTarget>) | Initializes a new instance of the AdapterConverter<TSource, TTarget> class with the specified creator function. |
Name | Description |
---|---|
Convert(object, Type, object, CultureInfo) | Converts a value to the target type using the creator function. |
ConvertBack(object, Type, object, CultureInfo) | Modifies the target data before passing it to the source object. This method is called only in TwoWay bindings. |