diff --git a/src/client/spark/core/Utility/ViewModelBase.cs b/src/client/spark/core/Utility/ViewModelBase.cs index a6da9680f..d978996aa 100644 --- a/src/client/spark/core/Utility/ViewModelBase.cs +++ b/src/client/spark/core/Utility/ViewModelBase.cs @@ -12,7 +12,11 @@ using System.Collections.ObjectModel; namespace mbts.ui.shell { - public class ViewModelBase : INotifyPropertyChanged + interface IRaiseNotifyPropertyChanged { + void raise_notify_property_changed(string prop); + } + + public class ViewModelBase : INotifyPropertyChanged, IRaiseNotifyPropertyChanged { public ViewModelBase() { _props = new Lazy(() => { @@ -31,6 +35,9 @@ namespace mbts.ui.shell } } + void IRaiseNotifyPropertyChanged.raise_notify_property_changed(string prop) => + RaisePropertyChanged(prop); + protected bool Set(ref T dest, T value, [CallerMemberName]string name = "") where T : IEquatable { if (!dest.Equals(value)) { dest = value;