Catel.MVVM.Views.ViewExtensions.FindParentByPredicate C# (CSharp) Method

FindParentByPredicate() public static method

Finds a parent by predicate. It first tries to find the parent via the UserControl.Parent property, and if that doesn't satisfy, it uses the UserControl.TemplatedParent property.
public static FindParentByPredicate ( this view, Predicate predicate ) : UIView
view this The control.
predicate Predicate The predicate.
return UIView
        public static UIView FindParentByPredicate(this IView view, Predicate<object> predicate)
        {
            return FindParentByPredicate((UIView)view, predicate, -1);
        }

Same methods

ViewExtensions::FindParentByPredicate ( this view, Predicate predicate, int maxDepth ) : UIView