In my WPF application, I use the following xaml: ...
<TextBox
services:TextBoxService.IsFocused="{Binding Path=IsSelected, Mode=OneWay}"
FocusVisualStyle="{x:Null}">
<MultiBinding
Converter="{StaticResource mconv_operableToString}"
UpdateSourceTrigger="PropertyChanged">
<Binding
Path="Value"
Mode="TwoWay"
NotifyOnValidationError="True" />
<Binding
RelativeSource="{RelativeSource FindAncestor, AncestorType={x:Type UserControl}}"
Path="DataContext.Status"
Mode="OneWay" />
</MultiBinding>
The view model class that uses the first binding implements IDataErrorInfo for validation purposes. The problem is that although the error gets into the property setting tool, the user interface does not notice this. I have a style defined with an error pattern that should be applied when any error occurs in the text box. I believe that perhaps this scenario is not resolved with multi binding, because when I use single binding, everything works fine.
Thanks in advance.
source
share