public static void AttachTo(this System.Windows.Forms.Control e, Activity Container) { var i = (__Control)(object)e; i.InternalSetContext(Container); var Child = i.InternalGetElement(); Container.setContentView(Child); }