The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

IBindingTypeConverter Interface

Summary

This interface is the extensible implementation of IValueConverters for Bind and OneWayBind. Implement this to teach Bind and OneWayBind how to convert between types.
graph BT Type-.->Interface0["IEnableLogger"] click Interface0 "/api/Splat/IEnableLogger" Type["IBindingTypeConverter"] class Type type-node Implementing0["DoubleToStringTypeConverter"]-.->Type click Implementing0 "/api/ReactiveUI/DoubleToStringTypeConverter" Implementing1["StringConverter"]-.->Type click Implementing1 "/api/ReactiveUI/StringConverter" Implementing2["NullableSingleToStringTypeConverter"]-.->Type click Implementing2 "/api/ReactiveUI/NullableSingleToStringTypeConverter" Implementing3["NullableDoubleToStringTypeConverter"]-.->Type click Implementing3 "/api/ReactiveUI/NullableDoubleToStringTypeConverter" Implementing4["DecimalToStringTypeConverter"]-.->Type click Implementing4 "/api/ReactiveUI/DecimalToStringTypeConverter" Implementing5["NullableByteToStringTypeConverter"]-.->Type click Implementing5 "/api/ReactiveUI/NullableByteToStringTypeConverter" Implementing6["IntegerToStringTypeConverter"]-.->Type click Implementing6 "/api/ReactiveUI/IntegerToStringTypeConverter" Implementing7["NullableIntegerToStringTypeConverter"]-.->Type click Implementing7 "/api/ReactiveUI/NullableIntegerToStringTypeConverter" Implementing8["NullableDecimalToStringTypeConverter"]-.->Type click Implementing8 "/api/ReactiveUI/NullableDecimalToStringTypeConverter" Implementing9["NullableLongToStringTypeConverter"]-.->Type click Implementing9 "/api/ReactiveUI/NullableLongToStringTypeConverter" Implementing10["ByteToStringTypeConverter"]-.->Type click Implementing10 "/api/ReactiveUI/ByteToStringTypeConverter" Implementing11["EqualityTypeConverter"]-.->Type click Implementing11 "/api/ReactiveUI/EqualityTypeConverter" Implementing12["NullableShortToStringTypeConverter"]-.->Type click Implementing12 "/api/ReactiveUI/NullableShortToStringTypeConverter" Implementing13["ShortToStringTypeConverter"]-.->Type click Implementing13 "/api/ReactiveUI/ShortToStringTypeConverter" Implementing14["BooleanToVisibilityTypeConverter"]-.->Type click Implementing14 "/api/ReactiveUI/BooleanToVisibilityTypeConverter" Implementing15["SingleToStringTypeConverter"]-.->Type click Implementing15 "/api/ReactiveUI/SingleToStringTypeConverter" Implementing16["DateTimeNSDateConverter"]-.->Type click Implementing16 "/api/ReactiveUI/DateTimeNSDateConverter" Implementing17["LongToStringTypeConverter"]-.->Type click Implementing17 "/api/ReactiveUI/LongToStringTypeConverter" Implementing18["ComponentModelTypeConverter"]-.->Type click Implementing18 "/api/ReactiveUI/ComponentModelTypeConverter"

Syntax

public interface IBindingTypeConverter : IEnableLogger

Methods

Name Value Summary
GetAffinityForObjects(Type, Type) int
Returns a positive integer when this class supports TryConvert for this particular Type. If the method isn't supported at all, return a non-positive integer. When multiple implementations return a positive value, the host will use the one which returns the highest value. When in doubt, return '2' or '0'.
TryConvert(object?, Type, object?, object?) bool
Convert a given object to the specified type.

Extension Methods

Name Value Summary
BindCommand<IBindingTypeConverter, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IBindingTypeConverter, TControl>>, Expression<Func<TViewModel, TParam?>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<IBindingTypeConverter, TViewModel, TProp, TControl, TParam>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IBindingTypeConverter, TControl>>, IObservable<TParam?>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindCommand<IBindingTypeConverter, TViewModel, TProp, TControl>(TViewModel?, Expression<Func<TViewModel, TProp?>>, Expression<Func<IBindingTypeConverter, TControl>>, string?) IReactiveBinding<TView, TProp>
Bind a command from the ViewModel to an explicitly specified control on the View.
BindValidation<IBindingTypeConverter, TViewModel, TViewModelProperty, TViewProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty>>, Expression<Func<IBindingTypeConverter, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the specified ViewModel property validation to the View property.
BindValidation<IBindingTypeConverter, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IBindingTypeConverter, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IBindingTypeConverter, TViewModel, TViewProperty>(TViewModel?, Expression<Func<IBindingTypeConverter, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds the overall validation of a ViewModel to a specified View property.
BindValidation<IBindingTypeConverter, TViewModel, TViewProperty>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, Expression<Func<IBindingTypeConverter, TViewProperty>>, IValidationTextFormatter<string>?) IDisposable
Binds a ValidationHelper from a ViewModel to a specified View property.
BindValidation<IBindingTypeConverter, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidation<IBindingTypeConverter, TViewModel>(TViewModel?, Expression<Func<TViewModel?, ValidationHelper?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<IBindingTypeConverter, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
BindValidationEx<IBindingTypeConverter, TViewModel, TViewModelProperty>(TViewModel?, Expression<Func<TViewModel, TViewModelProperty?>>, TextInputLayout, IValidationTextFormatter<string>?) IDisposable
Platform binding to the TextInputLayout.
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.
Log<IBindingTypeConverter>() IFullLogger
Call this method to write log entries on behalf of the current class.
From LogHost
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Expression<Func<IBindingTypeConverter, IObservable<T7>?>>, Expression<Func<IBindingTypeConverter, IObservable<T8>?>>, Expression<Func<IBindingTypeConverter, IObservable<T9>?>>, Expression<Func<IBindingTypeConverter, IObservable<T10>?>>, Expression<Func<IBindingTypeConverter, IObservable<T11>?>>, Expression<Func<IBindingTypeConverter, IObservable<T12>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, T12?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Expression<Func<IBindingTypeConverter, IObservable<T7>?>>, Expression<Func<IBindingTypeConverter, IObservable<T8>?>>, Expression<Func<IBindingTypeConverter, IObservable<T9>?>>, Expression<Func<IBindingTypeConverter, IObservable<T10>?>>, Expression<Func<IBindingTypeConverter, IObservable<T11>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, T11?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Expression<Func<IBindingTypeConverter, IObservable<T7>?>>, Expression<Func<IBindingTypeConverter, IObservable<T8>?>>, Expression<Func<IBindingTypeConverter, IObservable<T9>?>>, Expression<Func<IBindingTypeConverter, IObservable<T10>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, T10?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6, T7, T8, T9>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Expression<Func<IBindingTypeConverter, IObservable<T7>?>>, Expression<Func<IBindingTypeConverter, IObservable<T8>?>>, Expression<Func<IBindingTypeConverter, IObservable<T9>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, T9?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6, T7, T8>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Expression<Func<IBindingTypeConverter, IObservable<T7>?>>, Expression<Func<IBindingTypeConverter, IObservable<T8>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, T8?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6, T7>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Expression<Func<IBindingTypeConverter, IObservable<T7>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, T7?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5, T6>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Expression<Func<IBindingTypeConverter, IObservable<T6>?>>, Func<T1?, T2?, T3?, T4?, T5?, T6?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4, T5>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Expression<Func<IBindingTypeConverter, IObservable<T5>?>>, Func<T1?, T2?, T3?, T4?, T5?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3, T4>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Expression<Func<IBindingTypeConverter, IObservable<T4>?>>, Func<T1?, T2?, T3?, T4?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2, T3>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Expression<Func<IBindingTypeConverter, IObservable<T3>?>>, Func<T1?, T2?, T3?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet, T1, T2>(Expression<Func<IBindingTypeConverter, IObservable<T1>?>>, Expression<Func<IBindingTypeConverter, IObservable<T2>?>>, Func<T1?, T2?, TRet>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Observe a observable which is set to a property, and automatically subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
WhenAnyObservable<IBindingTypeConverter, TRet>(Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>, Expression<Func<IBindingTypeConverter, IObservable<TRet>?>>) IObservable<TRet>
Monitor a property that is an observable, and subscribe to the most recent emitted value.
With<IBindingTypeConverter, TKey, TField>(Dictionary<TKey, TField>, IDictionary<TKey, TField>) TBuilder
Adds the specified dictionary to the provided dictionary.