예제 #1
0
 void PrepareRearViewForPosition(FrontViewPosition newPosition)
 {
     if (RearView == null)
     {
         RearView = new UIView(Bounds);
         RearView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;
         InsertSubviewBelow(RearView, FrontView);
     }
     LayoutRearViews();
     PrepareForNewPosition(newPosition);
 }
예제 #2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("OTYwM0AzMTM2MmUzMjJlMzBjMm1DVUdEakRPdXBBOS9zditSMEVIZ0Zrclg0OUdob2t6YXRxNFEzNkU0PQ==");
            // Override point for customization after application launch.
            // If not required for your application you can safely delete this method
            App.Configure();
            Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
            FrontViewPosition pos = FrontViewPosition.Left;

            UIApplication.SharedApplication.StatusBarStyle = UIStatusBarStyle.LightContent;
            UINavigationBar.Appearance.Translucent         = false;
            return(true);
        }
예제 #3
0
        void PrepareForNewPosition(FrontViewPosition newPosition)
        {
            if (RearView == null || RightView == null)
            {
                return;
            }

            int symetry = newPosition < FrontViewPosition.FrontViewPositionLeft ? -1 : 1;

            var rearIndex  = Subviews.ToList().IndexOf(RearView);
            var rightIndex = Subviews.ToList().IndexOf(RightView);

            if ((symetry < 0 && rightIndex < rearIndex) || (symetry > 0 && rearIndex < rightIndex))
            {
                ExchangeSubview(rightIndex, rearIndex);
            }
        }
예제 #4
0
        float FrontLocationForPosition(FrontViewPosition newPosition)
        {
            var location = 0.0f;

            float revealWidth, revealOverdraw;
            int   simetry = (_frontViewPosition < FrontViewPosition.FrontViewPositionLeft) ? -1 : 1;

            Controller.GetRevealWidth(out revealWidth, out revealOverdraw, simetry);

            if (_frontViewPosition == FrontViewPosition.FrontViewPositionRight)
            {
                location = revealWidth;
            }
            else if (_frontViewPosition > FrontViewPosition.FrontViewPositionRight)
            {
                location = revealWidth + revealOverdraw;
            }

            return(location * simetry);
        }
예제 #5
0
 public void GetAdjustedFrontViewPosition(FrontViewPosition position, int simetry)
 {
     throw new NotImplementedException();
 }
 public virtual void DidMoveToPosition(SWRevealViewController revealController, FrontViewPosition position)
 {
     throw new You_Should_Not_Call_base_In_This_Method();
 }
		public virtual void SetFrontViewPosition (FrontViewPosition frontViewPosition, bool animated)
		{
			if (IsDirectBinding) {
				MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_int_bool (this.Handle, selSetFrontViewPositionAnimated_Handle, (int)frontViewPosition, animated);
			} else {
				MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_int_bool (this.SuperHandle, selSetFrontViewPositionAnimated_Handle, (int)frontViewPosition, animated);
			}
		}
예제 #8
0
 private void GetAdjustedFrontViewPosition(FrontViewPosition frontViewPosition, int symetry)
 {
 }
		public virtual void AnimateToPosition (SWRevealViewController revealController, FrontViewPosition position)
		{
			throw new You_Should_Not_Call_base_In_This_Method ();
		}