Find first parent control of a specific type using recursion