WpfBindingErrors 1.1.0

Throw an exception when a WPF Binding error occurs. Get started by adding WpfBindingErrors.BindingExceptionThrower.Attach(); to your WPF application.

Install-Package WpfBindingErrors -Version 1.1.0
dotnet add package WpfBindingErrors --version 1.1.0
<PackageReference Include="WpfBindingErrors" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add WpfBindingErrors --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

A lightweight library that converts WPF binding errors into exceptions, so you can quickly spot errors in the XAML markup and detect them unit tests.

Exception shown in Visual Studio

All it requires is a single line in your existing code:

public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs args)
    {
        base.OnStartup(args);
        
        // Start listening for WPF binding error.
        // After that line, a BindingException will be thrown each time
        // a binding error occurs.
        BindingExceptionThrower.Attach();
    }
}

A lightweight library that converts WPF binding errors into exceptions, so you can quickly spot errors in the XAML markup and detect them unit tests.

Exception shown in Visual Studio

All it requires is a single line in your existing code:

public partial class App : Application
{
    protected override void OnStartup(StartupEventArgs args)
    {
        base.OnStartup(args);
        
        // Start listening for WPF binding error.
        // After that line, a BindingException will be thrown each time
        // a binding error occurs.
        BindingExceptionThrower.Attach();
    }
}

Release Notes

Added .NET Core 3.0 support

  • .NETCoreApp 3.0

    • No dependencies.
  • .NETFramework 4.0

    • No dependencies.
  • .NETFramework 4.5

    • No dependencies.
  • .NETFramework 4.5.1

    • No dependencies.
  • .NETFramework 4.5.2

    • No dependencies.
  • .NETFramework 4.6

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
1.1.0 10,948 10/2/2019
1.0.0 20,144 8/11/2015
0.1.0 746 4/13/2015