Skip to content

ExRam/ExRam.MvvmCross.ObservableBinding

Repository files navigation

ExRam.MvvmCross.ObservableBinding

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> where T 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 as IObservable<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.

About

Support MvvmCross-Bindings to IObservable<T>-properties in view models.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages