I am trying to figure out how to do the equivalent of the following in c#: <Style x:Key=âtbStyleâ TargetType=â{x:Type TextBox}â> <Style.Triggers> <Trigger Property=âValidation.HasErrorâ Value=âtrueâ> <Setter Property=âToolTipâ Value=â{Binding RelativeSource={RelativeSource Self}, Path=(Validation.Errors)[0].ErrorContent}â/> </Trigger> </Style.Triggers> </Style> Regards