I wanted to include part of the bindings of a textbox in a style setter to make the xaml more clearly.
<Style TargetType="TextBox">
<Setter Property="Text" Value="{Binding Path=tmp, ValidatesOnDataErrors=True, NotifyOnValidationError=True, UpdateSourceTrigger=PropertyChanged}"/>
</Style>
Note: I am Binding Path to nothing, it is only needed to avoid an exception. The important bindings are ValidatesOnDataErrors, NotifyOnValidationError and UpdateSourceTrigger. So later I do this
<TextBox Text="{Binding Path=clientLastname}"/>
After this Binding the Bindings ValidatesOnDataErrors, NotifyOnValidationError and UpdateSourceTrigger are back to the default value.
Is there a possibility to only change the Path Binding?