The built in validation for WPF and Silverlight is meant for quick client-side validation (such as Regex, parsing values, etc. ).
The built in validation for WPF and Silverlight is meant for quick client-side validation (such as Regex, parsing values, etc. ). If you need to go to a server to perform validation (or validation takes a long time), I would do that in a custom way. Such as when clicking a save button, etc. So say you have a Save method in a ViewModel (you don't mention which MVVM framework you use): public void Save() { //Do your validation, this might start a new thread (I use Async CTP myself) //If validation is good, do your extra work, else display validation errors } I would just do all the work required for this within an action in your ViewModel.
I need to rely on he built in error templates of the WPF and custom controls. E.g. I would like to show the standard red border around a invalid textbox.
How can I force this border to be shown? – bitbonk Sep 2 at 13:40 I was suggesting to use a method like the top answer suggests here: stackoverflow.Com/questions/921601/… . I don't think it is a good idea to use the built-in validation if it's going to be a long running operation (it will always lock up the UI).
– Jonathan. Peppers Sep 2 at 22:52 I still need to materialize some sort of "ErrorTemplate" and display it once the VM raises an event. Since some of my forms unfortunately have quite a lot of fields I would not want the error visuals do be part of the visual tree right away but should only be created (e.g. By a behavior) once an validation error occurred for that field: See more info in my followup question: stackoverflow.Com/questions/7293277/… – bitbonk Sep 3 at 13:10.
I posted an answer on your other question that apparently answered this one too. Create a visualtree off of a control template in code.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.