From f85b10a7df81cf9d992a94064dcd35b4bf0dccaa Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 2 Aug 2018 15:20:58 -0400 Subject: [PATCH] add IRaiseNotifyPropertyChanged interface (implement in ViewModelBase) --- src/client/spark/core/Utility/ViewModelBase.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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;