Update to a more generic way to find the parent control.