// 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); }
private static bool HasValidationGroup(FrameworkElement fe) { if (fe != null) { IList <VisualStateGroup> groups = VisualStateManager.GetVisualStateGroupsInternal(fe); // the Validation group could be on either the FE or it's StateGroupRoot if (HasValidationGroup(groups)) { return(true); } if (fe.StateGroupsRoot != null) { groups = VisualStateManager.GetVisualStateGroupsInternal(fe.StateGroupsRoot); return(HasValidationGroup(groups)); } } return(false); }