We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d360fa commit d18f979Copy full SHA for d18f979
src/Avalonia.Base/Reactive/TypedBindingAdapter.cs
@@ -30,13 +30,15 @@ public void OnNext(BindingValue<object?> value)
30
}
31
catch (InvalidCastException e)
32
{
33
+ var unwrappedValue = value.HasValue ? value.Value : null;
34
+
35
Logger.TryGet(LogEventLevel.Error, LogArea.Binding)?.Log(
36
_target,
37
"Binding produced invalid value for {$Property} ({$PropertyType}): {$Value} ({$ValueType})",
38
_property.Name,
39
_property.PropertyType,
- value.Value,
- value.Value?.GetType());
40
+ unwrappedValue,
41
+ unwrappedValue?.GetType());
42
PublishNext(BindingValue<T>.BindingError(e));
43
44
0 commit comments