Browse Source

Add another sanity check to BindingValue.

pull/3287/head
Steven Kirk 7 years ago
parent
commit
aa9386ddaf
  1. 5
      src/Avalonia.Base/Data/BindingValue.cs

5
src/Avalonia.Base/Data/BindingValue.cs

@ -344,6 +344,11 @@ namespace Avalonia.Data
{
throw new InvalidOperationException("BindingOperations.DoNothing is not a valid value for BindingValue<>.");
}
if (value is BindingValue<object>)
{
throw new InvalidOperationException("BindingValue<object> cannot be wrapped in a BindingValue<>.");
}
}
}

Loading…
Cancel
Save