/// <summary> /// Gets a list of superviews of type T /// </summary> /// <typeparam name="T"></typeparam> /// <param name="view"></param> /// <returns></returns> public static IEnumerable <T> FindSuperviewsOfType <T>(this _View view) { return(view.FindSuperviews().OfType <T>()); }