Support MvvmCross-Bindings to IObservable<T>-properties in view models.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.nuget Do not ignore NuGet.Config and NuGet.targets. Nov 24, 2015
ExRam.MvvmCross.ObservableBinding.Sample.Core
ExRam.MvvmCross.ObservableBinding.Sample.Droid
ExRam.MvvmCross.ObservableBinding.Tests
ExRam.MvvmCross.ObservableBinding
.gitignore Do not ignore NuGet.Config and NuGet.targets. Nov 24, 2015
.gitmodules
ExRam.MvvmCross.ObservableBinding.sln
README.md
license.txt

README.md

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.