/// <summary> /// Removes a validation rule from the ValidationRules collection. /// </summary> /// <param name="rule">The rule to remove.</param> public void RemoveValidationRule(DataErrorInfoValidationRule rule) { if (rule == null) { throw new ArgumentNullException("rule"); } this.validationRules.Remove(rule); this.isValidationRulesCollectionDirty = true; this.NotifyPropertyChanged("ValidationRules"); }
/// <summary> /// Removes a validation rule from the ValidationRules collection. /// </summary> /// <param name="rule">The rule to remove.</param> public void RemoveValidationRule(DataErrorInfoValidationRule rule) { if (null == rule) { throw new ArgumentNullException("rule"); } this.validationRules.Remove(rule); this.isValidationRulesCollectionDirty = true; this.NotifyPropertyChanged("ValidationRules"); }