// 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: 0x0600597A RID: 22906 RVA: 0x0018B134 File Offset: 0x00189334
 private static bool HasValidationGroup(FrameworkElement fe)
 {
     if (fe != null)
     {
         IList <VisualStateGroup> visualStateGroupsInternal = VisualStateManager.GetVisualStateGroupsInternal(fe);
         if (Validation.HasValidationGroup(visualStateGroupsInternal))
         {
             return(true);
         }
         if (fe.StateGroupsRoot != null)
         {
             visualStateGroupsInternal = VisualStateManager.GetVisualStateGroupsInternal(fe.StateGroupsRoot);
             return(Validation.HasValidationGroup(visualStateGroupsInternal));
         }
     }
     return(false);
 }