public static MessagePageViewController Create() { UIStoryboard storyboard = UIStoryboard.FromName("MessagePage", null); MessagePageViewController vc = (MessagePageViewController)storyboard.InstantiateInitialViewController(); vc.ModalPresentationStyle = UIModalPresentationStyle.FullScreen; return(vc); }
public static UINavigationController GetMessagePageControllerInNavigationController() { UIViewController vc = MessagePageViewController.Create(); UINavigationController navigationController = new UINavigationController(vc); navigationController.SetNavigationBarHidden(true, false); navigationController.ModalPresentationStyle = UIModalPresentationStyle.FullScreen; return(navigationController); }