private UIViewController sample0() { var centerController = new Center(); var deckController = new ViewDeckController(centerController); deckController.RightLedge = 100; return deckController; }
private UIViewController sample1() { var leftController = new Left(); // << subclass and create a view var rightController = new Right(); var centerController = new Center(); var deckController = new ViewDeckController(centerController, leftController, rightController); deckController.RightLedge = 100; return deckController; }
private UIViewController sample3() { var leftController = new Left(); var bottomController = new Right(); var centerController = new Center(); centerController.Title = "Center 1"; var secondDeckController = new ViewDeckController(leftController, bottomController); secondDeckController.LeftLedge = 100; var deckController = new ViewDeckController(centerController, secondDeckController); deckController.LeftLedge = 30; return deckController; }
private void Test() { var leftController = new Left(); var rightController = new Right(); var centerController = new Center(); centerController.Title = "Center 1"; var deckController = new ViewDeckController(centerController, leftController, rightController); deckController.RightLedge = 100; deckController.NavigationControllerBehavior = ViewDeckNavigationControllerBehavior.Contained; this.NavigationController.PushViewController(deckController, true); // return deckController; }