Quantcast
Channel: Fluent Validation for .NET
Viewing all articles
Browse latest Browse all 1917

New Post: Can you use this validation Framework in WPF MVVM application

$
0
0

FluentValidation works with WPF/Silverlight. As Jeremy pointed out, all you have to do is to write the logic to show error messages and a bit of glue to find what rules to check when using this specific ViewModel class.

I implemented something like this for my WPF MVVM library, if you'd like to take a look - here it is: https://github.com/chester89/Modeler

There's nothing fancy, I just wrote a style for TextBox to show an error message https://github.com/chester89/Modeler/blob/master/WpfApp/MainWindow.xaml

I believe you can customize pretty much every WPF control that way.


Viewing all articles
Browse latest Browse all 1917

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>