dchaib / Caliburn.Micro.ReactiveUI

Caliburn.Micro screens and conductors rewritten to inherit from ReactiveUI ReactiveObject

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Please update to support current Caliburn.Micro (1.5.x) and current ReactiveUI (4.6.x)

tibel opened this issue · comments

For Caliburn.Micro it would be the best to use the latest sources as starting point, as there were a few changes/bugfixes (you have to find and port).

Also it would be great if you could support more platforms (e.g. Windows Phone).

My proposed ReactivePropertyChangedBase implementation:

    public class ReactivePropertyChangedBase : ReactiveObject, INotifyPropertyChangedEx {
#if !WinRT
        [Browsable(false)]
#endif
        public bool IsNotifying {
            get { return areChangeNotificationsEnabled; }
            set { throw new NotSupportedException(); }
        }

        public void Refresh() {
            NotifyOfPropertyChange(string.Empty);
        }

#if WinRT || NET45
        public virtual void NotifyOfPropertyChange([CallerMemberName]string propertyName = "") {
#else
        public virtual void NotifyOfPropertyChange(string propertyName) {
#endif
            raisePropertyChanged(propertyName);
        }
    }

I have finally updated to the latest versions of Caliburn.Micro (v1.5.2) and ReactiveUI (v4.6.4) and uploaded the new package on NuGet.

As for Windows Phone support, I've never worked with this (and I don't expect to do so) but I'll see what I can do!

Thanks.