/// <summary>
        /// Removes all errors from the specified element.
        /// </summary>
        /// <param name="element">The element to remove errors from.</param>
        public static void ClearInvalid(DependencyObject element)
        {
            var errorsToRemove = WValidation.GetErrors(element)
                                 .ToArray();

            foreach (var error in errorsToRemove)
            {
                removeValidationError.Invoke(null, new object[] { error, element, true });
            }
        }
Beispiel #2
0
 internal void UpdateValidationState()
 {
     UpdateValidationState(Validation.GetErrors(this).Count == 0);
 }