Device & UX
Plugin.Maui.FormValidation
Rules next to the model, Validation.For in XAML
Mobile-first validation for MAUI: fluent rules on the view-model (required, email, phone, URL, min/max) and a XAML Validation.For attached property.
Install
dotnet add package Plugin.Maui.FormValidationPackage ID: Plugin.Maui.FormValidation
Overview
Plugin.Maui.FormValidation is a mobile-first validation library for MAUI on Android and iOS. Rules live next to the model. XAML stays a property name.
Capabilities
- Required, email, phone, URL, numeric, min/max, min length, equal-to.
- Conditional rules.
- Lost-focus or submit-style triggers.
- XAML that names the property, not the error label.
- .NET MAUI
- Validation
- XAML
- C#