4 types derived from ValidationRule
PresentationFramework (4)
System\Windows\Controls\ConversionValidationRule.cs (1)
22
internal sealed class ConversionValidationRule :
ValidationRule
System\Windows\Controls\DataErrorValidationRule.cs (1)
28
public sealed class DataErrorValidationRule :
ValidationRule
System\Windows\Controls\ExceptionValidationRule.cs (1)
27
public sealed class ExceptionValidationRule :
ValidationRule
System\Windows\Controls\NotifyDataErrorValidationRule.cs (1)
28
public sealed class NotifyDataErrorValidationRule :
ValidationRule
39 references to ValidationRule
PresentationFramework (39)
MS\Internal\Controls\ValidationRuleCollection.cs (3)
27
internal class ValidationRuleCollection : Collection<
ValidationRule
>
41
protected override void InsertItem(int index,
ValidationRule
item)
51
protected override void SetItem(int index,
ValidationRule
item)
System\Windows\Controls\DataGrid.cs (7)
88
_rowValidationRules = new ObservableCollection<
ValidationRule
>();
935
public ObservableCollection<
ValidationRule
> RowValidationRules
955
foreach (
ValidationRule
rule in e.NewItems)
963
foreach (
ValidationRule
rule in e.OldItems)
971
foreach (
ValidationRule
rule in e.OldItems)
976
foreach (
ValidationRule
rule in e.NewItems)
8666
private ObservableCollection<
ValidationRule
> _rowValidationRules; // Stores the row ValidationRule's
System\Windows\Controls\ValidationError.cs (4)
30
public ValidationError(
ValidationRule
ruleInError, object bindingInError, object errorContent, Exception exception)
46
public ValidationError(
ValidationRule
ruleInError, object bindingInError) : this(ruleInError, bindingInError, null, null)
54
public
ValidationRule
RuleInError
113
private
ValidationRule
_ruleInError;
System\Windows\Data\Binding.cs (3)
243
public Collection<
ValidationRule
> ValidationRules
685
internal override
ValidationRule
LookupValidationRule(Type type)
791
internal override Collection<
ValidationRule
> ValidationRulesInternal
System\Windows\Data\BindingBase.cs (5)
381
internal virtual Collection<
ValidationRule
> ValidationRulesInternal
429
internal
ValidationRule
GetValidationRule(Type type)
443
internal virtual
ValidationRule
LookupValidationRule(Type type)
448
internal static
ValidationRule
LookupValidationRule(Type type, Collection<
ValidationRule
> collection)
System\Windows\Data\BindingExpression.cs (4)
1535
Collection<
ValidationRule
> validationRules = ParentBinding.ValidationRulesInternal;
1546
foreach (
ValidationRule
validationRule in validationRules)
1606
ValidationError RunValidationRule(
ValidationRule
validationRule, object value, CultureInfo culture)
2236
ValidationRule
exceptionValidationRule = ExceptionValidationRule.Instance;
System\Windows\Data\BindingExpressionBase.cs (5)
1181
Collection<
ValidationRule
> validationRules = ParentBindingBase.ValidationRulesInternal;
1187
foreach (
ValidationRule
validationRule in validationRules)
1629
internal
ValidationRule
LookupValidationRule(Type type)
1631
ValidationRule
result = ParentBindingBase.GetValidationRule(type);
2314
ValidationRule
rule = NotifyDataErrorValidationRule.Instance;
System\Windows\Data\BindingGroup.cs (5)
96
public Collection<
ValidationRule
> ValidationRules
990
ValidationRule
rule = ValidationRules[i];
1118
ValidationRule
rule = NotifyDataErrorValidationRule.Instance;
1224
ValidationRule
rule = _validationRules[i];
1445
Collection<
ValidationRule
> rules = originalBinding.ValidationRulesInternal;
System\Windows\Data\MultiBinding.cs (3)
240
public Collection<
ValidationRule
> ValidationRules
357
internal override
ValidationRule
LookupValidationRule(Type type)
419
internal override Collection<
ValidationRule
> ValidationRulesInternal