// Token: 0x06005979 RID: 22905 RVA: 0x0018B104 File Offset: 0x00189304 internal static void ShowValidationAdorner(DependencyObject targetElement, bool show) { if (!Validation.HasValidationGroup(targetElement as FrameworkElement)) { DependencyObject dependencyObject = Validation.GetValidationAdornerSite(targetElement); if (dependencyObject == null) { dependencyObject = targetElement; } Validation.ShowValidationAdornerHelper(targetElement, dependencyObject, show); } }
// Token: 0x06005978 RID: 22904 RVA: 0x0018B0B0 File Offset: 0x001892B0 private static void OnValidationAdornerSiteForChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) { if (e.IsASubPropertyChange) { return; } DependencyObject dependencyObject = (DependencyObject)e.OldValue; DependencyObject dependencyObject2 = (DependencyObject)e.NewValue; if (dependencyObject != null) { dependencyObject.ClearValue(Validation.ValidationAdornerSiteProperty); } if (dependencyObject2 != null && d != Validation.GetValidationAdornerSite(dependencyObject2)) { Validation.SetValidationAdornerSite(dependencyObject2, d); } }