[DF-4453] Added WillBecomeVisible\WillBecomeInvisible event callback and InViewHierarchy method.