Extension method to remove the required boilerplate for running code after a view has been inflated and measured.