BaseWPFHelpers.Helpers.FindElementOfTypeUp C# (CSharp) Method

FindElementOfTypeUp() public static method

Simple form call that returns the first element of a given type up in the visual tree
public static FindElementOfTypeUp ( Visual parent, Type ty ) : FrameworkElement
parent Visual
ty System.Type
return System.Windows.FrameworkElement
        public static FrameworkElement FindElementOfTypeUp(Visual parent, Type ty)
        {
            return SingleFindInTree(parent, new FinderMatchType(ty));
        }