/// <summary> /// Find the first child of a specific type. /// </summary> /// <typeparam name="T">Expected type of the searched child</typeparam> /// <param name="view"></param> /// <param name="childLevelLimit">Defines the max depth, null if not limit (Should never be used)</param> /// <param name="includeCurrent">Indicates if the current view should also be tested or not.</param> /// <returns></returns> public static T FindFirstChild <T>(this ViewGroup view, int?childLevelLimit = null, bool includeCurrent = true) where T : View { return(view.FindFirstChild <T>(null, childLevelLimit, includeCurrent)); }