// Token: 0x060048D2 RID: 18642 RVA: 0x0014A7F0 File Offset: 0x001489F0 public static bool TreeHasFocusAndTabStop(DependencyObject element) { if (element == null) { return(false); } UIElement uielement = element as UIElement; if (uielement != null) { if (uielement.Focusable && KeyboardNavigation.GetIsTabStop(uielement)) { return(true); } } else { ContentElement contentElement = element as ContentElement; if (contentElement != null && contentElement.Focusable && KeyboardNavigation.GetIsTabStop(contentElement)) { return(true); } } int childrenCount = VisualTreeHelper.GetChildrenCount(element); for (int i = 0; i < childrenCount; i++) { DependencyObject child = VisualTreeHelper.GetChild(element, i); if (DataGridHelper.TreeHasFocusAndTabStop(child)) { return(true); } } return(false); }