Plugin.WinUI.MVVMExpress.Validation
1.0.1
dotnet add package Plugin.WinUI.MVVMExpress.Validation --version 1.0.1
NuGet\Install-Package Plugin.WinUI.MVVMExpress.Validation -Version 1.0.1
<PackageReference Include="Plugin.WinUI.MVVMExpress.Validation" Version="1.0.1" />
<PackageVersion Include="Plugin.WinUI.MVVMExpress.Validation" Version="1.0.1" />
<PackageReference Include="Plugin.WinUI.MVVMExpress.Validation" />
paket add Plugin.WinUI.MVVMExpress.Validation --version 1.0.1
#r "nuget: Plugin.WinUI.MVVMExpress.Validation, 1.0.1"
#:package Plugin.WinUI.MVVMExpress.Validation@1.0.1
#addin nuget:?package=Plugin.WinUI.MVVMExpress.Validation&version=1.0.1
#tool nuget:?package=Plugin.WinUI.MVVMExpress.Validation&version=1.0.1
Plugin.WinUI.MVVMExpress.Validation
DataAnnotations validation for MVVMExpress (IValidator).
public sealed class Product
{
[Required]
public string Name { get; set; } = "";
}
var summary = DataAnnotationsValidator.Instance.Validate(product);
if (!summary.IsValid)
await dialogs.AlertAsync("Invalid", summary.ToString());
FluentValidation stays an optional app-level adapter. Trim: the package ships ILLink.Descriptors.xml for Required, MinLength, MaxLength, StringLength, Range, RegularExpression, EmailAddress, Compare, and MustMatch. Custom attributes need an app-level descriptor.
Install
dotnet add package Plugin.WinUI.MVVMExpress.Validation
Target framework: net10.0. Depends on Core. Version 1.0.1.
Related
For WPF bindings use WinUIFormViewModel (INotifyDataErrorInfo) with ValidatesOnNotifyDataErrors=True. Alternatives: FluentValidation, CommunityToolkit.Mvvm ObservableValidator.
Product docs: repository README. License: MIT.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Plugin.WinUI.MVVMExpress.Core (>= 1.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
1.0.1: NuGet README files use real markdown line breaks so the gallery renders.