How to Create and Use Validation Rules - WPF TUTORIALS

preview_player
Показать описание
Learn how to create and use a custom ValidationRule in a WPF application. I also discuss how validation rules compare to INotifyDataErrorInfo.

TIMESTAMPS:
0:00 - Introduction
0:22 - Demo Introduction
1:10 - Creating a ValidationRule
3:11 - Using ValidationRules
4:16 - Showing an Error Message
6:02 - Checking for Validation Errors in the UI
7:33 - ValidationRule vs. INotifyDataErrorInfo
9:44 - Conclusion

OTHER LINKS:
Рекомендации по теме
Комментарии
Автор

Boss level tutorials. You're the best Sean. One Day I hope to understand things as much as you do.

clickdraw
Автор

Simple and to the point. Thanks for this high quality tutorial.

andy
Автор

I just recently touch C# again, back then windows forms are prevalent, I just got introduced to an MVVM pattern and got stuck somehow in the validation, this tutorial is really straightforward, thank you so much for this.

jahsonbalbuena
Автор

Where do you get method OnPropertyChanged from? My compiler doesn't recognize it

altair
Автор

6:50 - Bind to "attached property" in WPF

ivandrofly
Автор

9:30 means if the ValidationRules returns false no value will be set to the property that the validationrules is handling validation for.

ivandrofly
Автор

How would I combine/replace FluentValidation's AbstractValidator with an inherited implementation of ValidationRule ? So I can use it in my controller as well as in a ViewModel

jametime
Автор

Your content is great, but your presentation is way too fast.

steveradstock
join shbcf.ru