public static T?FindDescendant <T>(this DependencyObject element, SearchType searchType)
            where T : notnull, DependencyObject
        {
            PredicateByAny <T> predicateByAny = default;

            return(FindDescendant <T, PredicateByAny <T> >(element, ref predicateByAny, searchType));
        }
        public static T? FindParent<T>(this FrameworkElement element)
            where T : notnull, FrameworkElement
        {
            PredicateByAny<T> predicateByAny = default;

            return FindParent<T, PredicateByAny<T>>(element, ref predicateByAny);
        }
Пример #3
0
        public static T?FindDescendant <T>(this DependencyObject element)
#if HAS_UNO
            where T : class, DependencyObject
#else
            where T : notnull, DependencyObject
#endif
        {
            PredicateByAny <T> predicateByAny = default;

            return(FindDescendant <T, PredicateByAny <T> >(element, ref predicateByAny));
        }