示例#1
0
        internal static T FindParentOfType <T>(this Element element)
        {
            var navPage = element
                          .GetParentsPath()
                          .OfType <T>()
                          .FirstOrDefault();

            return(navPage);
        }