4 types derived from ValidationRule
PresentationFramework (4)
System\Windows\Controls\ConversionValidationRule.cs (1)
19
internal sealed class ConversionValidationRule :
ValidationRule
System\Windows\Controls\DataErrorValidationRule.cs (1)
24
public sealed class DataErrorValidationRule :
ValidationRule
System\Windows\Controls\ExceptionValidationRule.cs (1)
24
public sealed class ExceptionValidationRule :
ValidationRule
System\Windows\Controls\NotifyDataErrorValidationRule.cs (1)
20
public sealed class NotifyDataErrorValidationRule :
ValidationRule
39 references to ValidationRule
PresentationFramework (39)
MS\Internal\Controls\ValidationRuleCollection.cs (3)
25
internal class ValidationRuleCollection : Collection<
ValidationRule
>
39
protected override void InsertItem(int index,
ValidationRule
item)
49
protected override void SetItem(int index,
ValidationRule
item)
System\Windows\Controls\DataGrid.cs (7)
85
_rowValidationRules = new ObservableCollection<
ValidationRule
>();
932
public ObservableCollection<
ValidationRule
> RowValidationRules
952
foreach (
ValidationRule
rule in e.NewItems)
960
foreach (
ValidationRule
rule in e.OldItems)
968
foreach (
ValidationRule
rule in e.OldItems)
973
foreach (
ValidationRule
rule in e.NewItems)
8663
private ObservableCollection<
ValidationRule
> _rowValidationRules; // Stores the row ValidationRule's
System\Windows\Controls\ValidationError.cs (4)
28
public ValidationError(
ValidationRule
ruleInError, object bindingInError, object errorContent, Exception exception)
44
public ValidationError(
ValidationRule
ruleInError, object bindingInError) : this(ruleInError, bindingInError, null, null)
52
public
ValidationRule
RuleInError
111
private
ValidationRule
_ruleInError;
System\Windows\Data\Binding.cs (3)
235
public Collection<
ValidationRule
> ValidationRules
677
internal override
ValidationRule
LookupValidationRule(Type type)
783
internal override Collection<
ValidationRule
> ValidationRulesInternal
System\Windows\Data\BindingBase.cs (5)
379
internal virtual Collection<
ValidationRule
> ValidationRulesInternal
427
internal
ValidationRule
GetValidationRule(Type type)
441
internal virtual
ValidationRule
LookupValidationRule(Type type)
446
internal static
ValidationRule
LookupValidationRule(Type type, Collection<
ValidationRule
> collection)
System\Windows\Data\BindingExpression.cs (4)
1526
Collection<
ValidationRule
> validationRules = ParentBinding.ValidationRulesInternal;
1537
foreach (
ValidationRule
validationRule in validationRules)
1597
ValidationError RunValidationRule(
ValidationRule
validationRule, object value, CultureInfo culture)
2227
ValidationRule
exceptionValidationRule = ExceptionValidationRule.Instance;
System\Windows\Data\BindingExpressionBase.cs (5)
1173
Collection<
ValidationRule
> validationRules = ParentBindingBase.ValidationRulesInternal;
1179
foreach (
ValidationRule
validationRule in validationRules)
1621
internal
ValidationRule
LookupValidationRule(Type type)
1623
ValidationRule
result = ParentBindingBase.GetValidationRule(type);
2306
ValidationRule
rule = NotifyDataErrorValidationRule.Instance;
System\Windows\Data\BindingGroup.cs (5)
91
public Collection<
ValidationRule
> ValidationRules
985
ValidationRule
rule = ValidationRules[i];
1113
ValidationRule
rule = NotifyDataErrorValidationRule.Instance;
1219
ValidationRule
rule = _validationRules[i];
1440
Collection<
ValidationRule
> rules = originalBinding.ValidationRulesInternal;
System\Windows\Data\MultiBinding.cs (3)
235
public Collection<
ValidationRule
> ValidationRules
352
internal override
ValidationRule
LookupValidationRule(Type type)
414
internal override Collection<
ValidationRule
> ValidationRulesInternal