Support MvvmCross-Bindings to IObservable<T>-properties in view models.
Usage:
At some point in the initialisation process (usually in your override of MvxSetup.LoadPlugins
), call ExRam.MvvmCross.ObservableBinding.PluginLoader.Instance.EnsureLoaded();
and you're done.
Note:
- This does now also work for properties of type
IObservable<T>
whereT
is a value type. However, on AOT platforms, it may not work for arbitrary value types, especially custom structs. For the built-in value types (int, char, etc.) it should work though. In any case, you may always expose your Observable asIObservable<object>
by boxing each element. - It is now possible to pass an IMvxMainThreadDispatcher to the extension. Changes on observables (even nested ones) are then observed on that dispatcher.