public LWSlideViewController(UIViewController initVC)
 {
     initViewController = initVC;
     rotationEnabled = true;
     slideMode = LWSlideViewControllerMode.AllViewController | LWSlideViewControllerMode.WholeView;
     slideState = LWSlideViewControllerState.Normal;
 }
        private void SlideOutSlideNavigationView()
        {
            slideState = LWSlideViewControllerState.Peeking;
            slideNavigationController.TopViewController.View.UserInteractionEnabled = false;

            UIView.Animate(kLWSlideAnimationDuration, 0, UIViewAnimationOptions.CurveEaseInOut | UIViewAnimationOptions.BeginFromCurrentState,
                           delegate{
                slideNavigationController.View.Transform = CGAffineTransform.MakeTranslation(kLWRightAnchorX, 0f);
            }, delegate {
                slideInTapGestureRecognizer.Enabled = true;
            });
        }
        private void HandleTouchesBeganAtLocation(PointF location)
        {
            if ((slideMode & LWSlideViewControllerMode.AllViewController) == 0 && (slideState == LWSlideViewControllerState.DrilledDown))
                return;

            startingDragPoint = location;

            if (slideNavigationController.View.Frame.Contains(startingDragPoint) && slideState == LWSlideViewControllerState.Peeking)
            {
                slideState = LWSlideViewControllerState.Dragging;
                startingDragTransformTx = slideNavigationController.View.Transform.x0;
            }

            if ((slideMode & LWSlideViewControllerMode.WholeView) != 0 || startingDragPoint.Y <= slideNavigationController.NavigationBar.Frame.Size.Height)
            {
                slideState = LWSlideViewControllerState.Dragging;
                startingDragTransformTx = slideNavigationController.View.Transform.x0;
            }
        }
 private void SlideInSlideNavigationView()
 {
     UIView.Animate(kLWSlideAnimationDuration, 0, UIViewAnimationOptions.CurveEaseInOut | UIViewAnimationOptions.BeginFromCurrentState,
                    delegate {
         slideNavigationController.View.Transform = CGAffineTransform.MakeIdentity();
     }, delegate {
         slideNavigationController.TopViewController.View.UserInteractionEnabled = true;
         slideInTapGestureRecognizer.Enabled = false;
         slideState = LWSlideViewControllerState.Normal;
     });
 }
 void HandleDidShowViewControllerEvent(LWSlideViewControllerState state)
 {
     slideState = state;
 }