public void ViewDeckSimpleSample() { var leftController = new ViewDeckSamples.LeftController(); var rightController = new ViewDeckSamples.RightController(); var centerController = new ViewDeckSamples.CenterController(true); var deckController = new ViewDeckController(centerController, leftController, rightController); deckController.RightLedge = 40; deckController.LeftLedge = 100; // use this to control if panning is enabled // deckController.Enabled = false; this.PresentViewController(deckController, true, null); }
public virtual void DidShowCenterView(ViewDeckController viewDeckController, bool animated) { }
public virtual void DidCloseRightView(ViewDeckController viewDeckController, bool animated) { }
public virtual bool WillCloseRightView(ViewDeckController viewDeckController, bool animated) { return true; }
public virtual void DidOpenLeftView(ViewDeckController viewDeckController, bool animated) { }
public virtual bool WillOpenLeftView(ViewDeckController viewDeckController, bool animated) { return true; }
public virtual void DidBounceWithClosingController(ViewDeckController viewDeckController, UIViewController openController) { }
public virtual void SlideOffsetChanged(ViewDeckController viewDeckController, float offset) { }
public virtual void DidPanToOffset(ViewDeckController viewDeckController, float offset) { }
public virtual bool ApplyShadow(ViewDeckController viewDeckController, CALayer shadowLayer, RectangleF rect) { return false; }
public void GotoDeck() { var leftController = new LeftController(); var rightController = new RightController(); var centerController = new CenterController(false); centerController.Title = "Center"; var deckController = new ViewDeckController(centerController, leftController, rightController); deckController.RightLedge = 40; deckController.LeftLedge = 100; if (this.contained) { deckController.NavigationControllerBehavior = ViewDeckNavigationControllerBehavior.Contained; } else { deckController.NavigationControllerBehavior = ViewDeckNavigationControllerBehavior.Integrated; } this.NavigationController.PushViewController(deckController, true); }
public void ViewDeckMultiDeckSample() { var leftController = new ViewDeckSamples.MultiMiddleController(); var bottomController = new ViewDeckSamples.MultiBottomController(); var centerController = new ViewDeckSamples.MultiTopController(); var secondDeckController = new ViewDeckController(leftController, bottomController); secondDeckController.LeftLedge = 100; var deckController = new ViewDeckController(centerController, secondDeckController); deckController.LeftLedge = 30; this.PresentViewController(deckController, true, null); }