private void OnBindingFailed(BindingFailedEventArgs args) { BindingFailed?.Invoke(this, args); }
internal static void SendBindingFailure(BindingBase binding, object source, BindableObject bo, BindableProperty bp, string errorCode, string message, params object[] messageArgs) { Application.Current?.FindMauiContext()?.CreateLogger <BindingDiagnostics>()?.LogWarning(message, messageArgs); BindingFailed?.Invoke(null, new BindingErrorEventArgs(VisualDiagnostics.GetSourceInfo(binding), binding, source, bo, bp, errorCode, message, messageArgs)); }
internal static void SendBindingFailure(BindingBase binding, object source, BindableObject bo, BindableProperty bp, string errorCode, string message, params object[] messageArgs) { Log.Warning(errorCode, message, messageArgs); BindingFailed?.Invoke(null, new BindingErrorEventArgs(VisualDiagnostics.GetXamlSourceInfo(binding), binding, source, bo, bp, errorCode, message, messageArgs)); }
internal static void SendBindingFailure(BindingBase binding, string errorCode, string message, object[] messageArgs) => BindingFailed?.Invoke(binding, new BindingBaseErrorEventArgs(VisualDiagnostics.GetXamlSourceInfo(binding), binding, errorCode, message, messageArgs));