Mindfire.Binding 1.1.0

.NET Standard 2.0
Install-Package Mindfire.Binding -Version 1.1.0
dotnet add package Mindfire.Binding --version 1.1.0
<PackageReference Include="Mindfire.Binding" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Mindfire.Binding --version 1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Mindfire.Binding, 1.1.0"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install Mindfire.Binding as a Cake Addin
#addin nuget:?package=Mindfire.Binding&version=1.1.0

// Install Mindfire.Binding as a Cake Tool
#tool nuget:?package=Mindfire.Binding&version=1.1.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


This package is a collection of tools to make binding and validation easier. It borrows from the blog by David Britch on validating Xamarin Forms, but has been slightly extended. This can also be used in platforms other than Xamarin Forms. The original code can be found here: https://github.com/dotnet-architecture/eShopOnContainers/blob/1b7200791931f33c94206822a69644ca820bb0dc/src/Mobile/eShopOnContainers/eShopOnContainers.Core/Validations/ValidatableObject.cs. This package includes the following:


An object used to hold a value and validation rules. It supports INotifyPropertyChanged, and so will update the UI or allow devs to be notified when any of its properties are updated.

  • Value: The value that should be stored in the object. This is what is used against validations.
  • IsValid: Whether or not the object passes all validation rules
  • IsInvalid: The opposite of IsValid
  • Errors: IEnumerable<string> that contains all messages from the collection of errors
  • AllErrors: The result of running string.Join on the Errors property
  • Validations: ICollection<IValidationRule<T>>. Collection of rules that should be used to validate the object's value
  • Validate(): Method to manually cause the object to validate the current value


An interface that is used to run validations.

  • ValidationMessage: This property should be set to whatever you want shown when a validation fails. This is what is returned in the Errors property of the ValidatableObject.
  • Check(T value): The method used to check a given value. This returns a boolean that indicates validity. Use this to run whatever code you need to check validity (e.g. for email addresses, credit cards, etc.).
Product Versions
.NET net5.0 net5.0-windows net6.0 net6.0-android net6.0-ios net6.0-maccatalyst net6.0-macos net6.0-tvos net6.0-windows
.NET Core netcoreapp2.0 netcoreapp2.1 netcoreapp2.2 netcoreapp3.0 netcoreapp3.1
.NET Standard netstandard2.0 netstandard2.1
.NET Framework net461 net462 net463 net47 net471 net472 net48
MonoAndroid monoandroid
MonoMac monomac
MonoTouch monotouch
Tizen tizen40 tizen60
Xamarin.iOS xamarinios
Xamarin.Mac xamarinmac
Xamarin.TVOS xamarintvos
Xamarin.WatchOS xamarinwatchos
Compatible target framework(s)
Additional computed target framework(s)
Learn more about Target Frameworks and .NET Standard.
  • .NETStandard 2.0

    • 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 Downloads Last updated
1.1.0 333 7/14/2020
1.0.0 376 7/10/2020

Added IsInvalid and AllErrors properties to the ValidationObject