aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/ExtendedObject.cs')
-rw-r--r--Software/Visual_Studio/Tango.Core/ExtendedObject.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
index 84a73bf7c..8ac80034d 100644
--- a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
+++ b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
+using System.Runtime.CompilerServices;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
@@ -32,6 +33,15 @@ namespace Tango.Core
}
/// <summary>
+ /// Raises the property changed event.
+ /// </summary>
+ /// <param name="propName">Name of the property.</param>
+ protected virtual void RaisePropertyChangedAuto([CallerMemberName] string caller = null)
+ {
+ PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(caller));
+ }
+
+ /// <summary>
/// Raises all relay commands CanExecute methods in the current instance.
/// </summary>
protected virtual void InvalidateRelayCommands()