5 types derived from ValidationRule
PresentationFramework (4)
src\Framework\System\Windows\Controls\ConversionValidationRule.cs (1)
26
internal sealed class ConversionValidationRule :
ValidationRule
src\Framework\System\Windows\Controls\DataErrorValidationRule.cs (1)
32
public sealed class DataErrorValidationRule :
ValidationRule
src\Framework\System\Windows\Controls\ExceptionValidationRule.cs (1)
33
public sealed class ExceptionValidationRule :
ValidationRule
src\Framework\System\Windows\Controls\NotifyDataErrorValidationRule.cs (1)
32
public sealed class NotifyDataErrorValidationRule :
ValidationRule
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (1)
805
class ExpressionValidationRule :
ValidationRule
43 references to ValidationRule
PresentationFramework (39)
src\Framework\MS\Internal\Controls\ValidationRuleCollection.cs (3)
34
internal class ValidationRuleCollection : Collection<
ValidationRule
>
49
protected override void InsertItem(int index,
ValidationRule
item)
60
protected override void SetItem(int index,
ValidationRule
item)
src\Framework\System\Windows\Controls\DataGrid.cs (7)
89
_rowValidationRules = new ObservableCollection<
ValidationRule
>();
936
public ObservableCollection<
ValidationRule
> RowValidationRules
956
foreach (
ValidationRule
rule in e.NewItems)
964
foreach (
ValidationRule
rule in e.OldItems)
972
foreach (
ValidationRule
rule in e.OldItems)
977
foreach (
ValidationRule
rule in e.NewItems)
8693
private ObservableCollection<
ValidationRule
> _rowValidationRules; // Stores the row ValidationRule's
src\Framework\System\Windows\Controls\ValidationError.cs (4)
38
public ValidationError(
ValidationRule
ruleInError, object bindingInError, object errorContent, Exception exception)
56
public ValidationError(
ValidationRule
ruleInError, object bindingInError) : this(ruleInError, bindingInError, null, null)
64
public
ValidationRule
RuleInError
123
private
ValidationRule
_ruleInError;
src\Framework\System\Windows\Data\Binding.cs (3)
248
public Collection<
ValidationRule
> ValidationRules
690
internal override
ValidationRule
LookupValidationRule(Type type)
796
internal override Collection<
ValidationRule
> ValidationRulesInternal
src\Framework\System\Windows\Data\BindingBase.cs (5)
384
internal virtual Collection<
ValidationRule
> ValidationRulesInternal
432
internal
ValidationRule
GetValidationRule(Type type)
446
internal virtual
ValidationRule
LookupValidationRule(Type type)
451
internal static
ValidationRule
LookupValidationRule(Type type, Collection<
ValidationRule
> collection)
src\Framework\System\Windows\Data\BindingExpression.cs (4)
1520
Collection<
ValidationRule
> validationRules = ParentBinding.ValidationRulesInternal;
1531
foreach (
ValidationRule
validationRule in validationRules)
1591
ValidationError RunValidationRule(
ValidationRule
validationRule, object value, CultureInfo culture)
2216
ValidationRule
exceptionValidationRule = ExceptionValidationRule.Instance;
src\Framework\System\Windows\Data\BindingExpressionBase.cs (5)
1185
Collection<
ValidationRule
> validationRules = ParentBindingBase.ValidationRulesInternal;
1191
foreach (
ValidationRule
validationRule in validationRules)
1622
internal
ValidationRule
LookupValidationRule(Type type)
1624
ValidationRule
result = ParentBindingBase.GetValidationRule(type);
2305
ValidationRule
rule = NotifyDataErrorValidationRule.Instance;
src\Framework\System\Windows\Data\BindingGroup.cs (5)
98
public Collection<
ValidationRule
> ValidationRules
992
ValidationRule
rule = ValidationRules[i];
1120
ValidationRule
rule = NotifyDataErrorValidationRule.Instance;
1226
ValidationRule
rule = _validationRules[i];
1447
Collection<
ValidationRule
> rules = originalBinding.ValidationRulesInternal;
src\Framework\System\Windows\Data\MultiBinding.cs (3)
244
public Collection<
ValidationRule
> ValidationRules
362
internal override
ValidationRule
LookupValidationRule(Type type)
424
internal override Collection<
ValidationRule
> ValidationRulesInternal
System.Activities.Presentation (4)
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionTextBox.xaml.cs (4)
737
BindingMode mode = BindingMode.OneWay, IEnumerable<
ValidationRule
> validationRules = null)
742
if ((validationRules != null) && (validationRules.Count<
ValidationRule
>() > 0))
744
foreach (
ValidationRule
rule in validationRules)
764
SetBinding("Expression", ExpressionActivityEditor.ExpressionProperty, editor, expressionTextBox, BindingMode.TwoWay, new Collection<
ValidationRule
> { new ExpressionValidationRule(expressionTextBox) });