diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Core/ExtendedObject.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Core/ExtendedObject.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs index 63a75480c..f09a82ae9 100644 --- a/Software/Visual_Studio/Tango.Core/ExtendedObject.cs +++ b/Software/Visual_Studio/Tango.Core/ExtendedObject.cs @@ -82,7 +82,7 @@ namespace Tango.Core { InvokeUI(() => { - foreach (var prop in this.GetType().GetProperties().Where(x => x.PropertyType == typeof(RelayCommand))) + foreach (var prop in this.GetType().GetProperties().Where(x => typeof(RelayCommand).IsAssignableFrom(x.PropertyType))) { var value = prop.GetValue(this) as RelayCommand; |
