Using Fluent validation in views

37 views
Skip to first unread message

Dan

unread,
Apr 27, 2012, 5:58:55 AM4/27/12
to magellan...@googlegroups.com
Hi,
I want to use the FuentValidation library but I am not sure how to do that. I have a View (WPF Page) were a new User should be created. I am not using magellan forms. I have created a validator and attached it to the action of the controller. So far everything work fine and validation works as I can see the validation message in the views ValidationMessages Dictionary and the Error property is set. 
How do I connect these properties with my TextBox in the View?

Thx

Dan

unread,
Apr 27, 2012, 8:36:00 AM4/27/12
to magellan...@googlegroups.com
Ok, sometimes things are too easy to get them ;-)
For the View is already implementing IDataErrorInfo through the PresentationObject inheritance the only thing I had to do is adding  ValidatesOnDataErrors=True to my bindings!
Reply all
Reply to author
Forward
0 new messages