I have a TextBox in my WPF app. I have defined a ControlTemplate for validation error as follows:
Validation.SetErrorTemplate(txtBox, this.FindResource("validationTemplate") as ControlTemplate);