导航

WPF IDataErrorInfo结合FluentValidation框架完美实现统一的数据校验及提交

Gitee源码:NET WPF: .NET WPF应用技术分享 (gitee.com)

运行环境:

.NET 6

依赖包:

<PackageReference Include="Prism.Unity" Version="8.1.97" />

<PackageReference Include="Prism.Wpf" Version="8.1.97" />

<PackageReference Include="FluentValidation" Version="11.8.1" />

项目如下:

 运行效果: