13 references to BindingDiagnostics
Microsoft.Maui.Controls (13)
AppThemeBinding.cs (1)
112
BindingDiagnostics
.SendBindingFailure(this, null, target, _targetProperty, "AppThemeBinding", BindingExpression.CannotConvertTypeErrorMessage, value, _targetProperty.ReturnType);
BindingExpression.cs (5)
76
BindingDiagnostics
.SendBindingFailure(Binding, "Binding", $"Mismatch between the specified x:DataType ({dataType}) and the current binding context ({sourceObject.GetType()}).");
153
BindingDiagnostics
.SendBindingFailure(Binding, current, target, property, "Binding", PropertyNotFoundErrorMessage, part.Content, current, target.GetType(), property.PropertyName);
175
BindingDiagnostics
.SendBindingFailure(Binding, current, target, property, "Binding", CannotConvertTypeErrorMessage, value, property.ReturnType);
187
BindingDiagnostics
.SendBindingFailure(Binding, current, target, property, "Binding", CannotConvertTypeErrorMessage, value, part.SetterType);
334
BindingDiagnostics
.SendBindingFailure(Binding, "Binding", ParseIndexErrorMessage, part.Content, sourceType);
MultiBinding.cs (2)
105
BindingDiagnostics
.SendBindingFailure(this, null, _targetObject, _targetProperty, "MultiBinding", BindingExpression.CannotConvertTypeErrorMessage, value, _targetProperty.ReturnType);
178
BindingDiagnostics
.SendBindingFailure(this, context, _targetObject, _targetProperty, "MultiBinding", BindingExpression.CannotConvertTypeErrorMessage, value, _targetProperty.ReturnType);
TypedBinding.cs (3)
293
BindingDiagnostics
.SendBindingFailure(this, "Binding", $"Mismatch between the specified x:DataType ({typeof(TSource)}) and the current binding context ({sourceObject.GetType()}).");
322
BindingDiagnostics
.SendBindingFailure(this, sourceObject, target, property, "Binding", BindingExpression.CannotConvertTypeErrorMessage, value, property.ReturnType);
335
BindingDiagnostics
.SendBindingFailure(this, sourceObject, target, property, "Binding", BindingExpression.CannotConvertTypeErrorMessage, value, typeof(TProperty));
Xaml\Diagnostics\BindingDiagnostics.cs (2)
18
Application.Current?.FindMauiContext()?.CreateLogger<
BindingDiagnostics
>()?.LogWarning(message, messageArgs);
24
Application.Current?.FindMauiContext()?.CreateLogger<
BindingDiagnostics
>()?.LogWarning(message, messageArgs);