Just add this style to your control resources, it should work for all text fields in your control, and then -
<Style x:Key="{x:Type TextBox}" TargetType="TextBox"> <Setter Property="Validation.ErrorTemplate"> <Setter.Value> <ControlTemplate> <Border Background="Red" Opacity="0.5" ToolTip="{Binding ElementName=adorner,Path=AdornedElement.(Validation.Errors)[0].ErrorContent}"> <AdornedElementPlaceholder Name="adorner"/> </Border> </ControlTemplate> </Setter.Value> </Setter> </Style>
source share