WPF - ValidationRule is not being called
问题 I got this Xaml of a TextBlock: <TextBlock VerticalAlignment="Center"> <TextBlock.Text> <Binding Path="FilesPath" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged"> <Binding.ValidationRules> <viewModel:ExtensionRule></viewModel:ExtensionRule> </Binding.ValidationRules> </Binding> </TextBlock.Text> </TextBlock> In the ViewModel: private string _filesPath; public string FilesPath { set { _filesPath = value; OnPropertyChange("FilesPath"); } get { return _filesPath; } } private void