Reputation: 161
I finally got validation working with MVVM in my Silverlight app. Now I'm wondering if there is a way to show the validation message that pops up to the right automatically without having to first click inside the textbox. The red border shows up, but it would be nice if the message was there as well. Any ideas?
Upvotes: 0
Views: 634
Reputation: 816
You can edit the textbox's template to change how / where validation errors are shown. The default textbox template has them in a tooltip, you could, for instance move that to a label or textblock.
Upvotes: 1
Reputation: 49984
For an example of how to conveniently show it in a tooltip, check my blog post: Taking data binding, validation and MVVM to the next level - part 1
Upvotes: 1