WPF Nested binding in a controltemplate
问题 I have successfully created a textbox that displays / collapses an error message depending upon a validation rule set in its model / vm. The code goes like this for the email for ex.: <StackPanel Grid.Row="3" Grid.Column="1"> <TextBox MaxLength="200" x:Name="mailTextBox" Style="{StaticResource SectionEditPropertyTextBox}" Text="{Binding Email, UpdateSourceTrigger=PropertyChanged, ValidatesOnDataErrors=True}" /> <ContentPresenter Visibility="{Binding ElementName=mailTextBox, Path=(Validation