当前位置: 首页>>代码示例>>C#>>正文


C# UINavigationController.DidMoveToParentViewController方法代码示例

本文整理汇总了C#中UINavigationController.DidMoveToParentViewController方法的典型用法代码示例。如果您正苦于以下问题:C# UINavigationController.DidMoveToParentViewController方法的具体用法?C# UINavigationController.DidMoveToParentViewController怎么用?C# UINavigationController.DidMoveToParentViewController使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在UINavigationController的用法示例。


在下文中一共展示了UINavigationController.DidMoveToParentViewController方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SetupNavigationController

		private void SetupNavigationController()
		{
			if (_albumsViewController == null) {
				_albumsViewController = new GMAlbumsViewController ();
			}
			_navigationController = new UINavigationController (_albumsViewController);
			_navigationController.Delegate = new GMNavigationControllerDelegate ();

			_navigationController.NavigationBar.Translucent = true;

			_navigationController.View.Frame = View.Frame;
			_navigationController.WillMoveToParentViewController (this);
			View.AddSubview (_navigationController.View);
			AddChildViewController (_navigationController);
			_navigationController.DidMoveToParentViewController (this);
		}
开发者ID:Cybrosys,项目名称:GMImagePicker.Xamarin,代码行数:16,代码来源:GMImagePickerController.cs

示例2: ViewDidLoad

        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();
            tableView = new UITableView(new RectangleF(0,0,320, View.Bounds.Size.Height), UITableViewStyle.Plain);
            tableView.AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight;
            tableView.BackgroundColor = UIColor.FromRGBA(50f/255f,57f/255f,74f/255f,1f);
            tableView.SeparatorStyle = UITableViewCellSeparatorStyle.None;
            TestTableSource tableSource = new TestTableSource();
            tableSource.RowSelectedEvent += HandleRowSelectedEvent;
            tableView.Source = tableSource;
            View.AddSubview(tableView);

            ConfigureViewController(initViewController);

            slideNavigationController = new UINavigationController(initViewController);
            LWSlideNavigationControllerDelegate navDelegate = new LWSlideNavigationControllerDelegate();
            navDelegate.DidShowViewControllerEvent += HandleDidShowViewControllerEvent;
            slideNavigationController.Delegate = navDelegate;
            slideNavigationController.View.Layer.ShadowColor = UIColor.Black.CGColor;
            slideNavigationController.View.Layer.ShadowOffset = new SizeF(0,0);
            slideNavigationController.View.Layer.ShadowRadius = 4;
            slideNavigationController.View.Layer.ShadowOpacity = 0.75f;
            slideNavigationController.WillMoveToParentViewController(this);
            AddChildViewController(slideNavigationController);
            View.AddSubview(slideNavigationController.View);
            slideNavigationController.DidMoveToParentViewController(this);

            UIBezierPath path = UIBezierPath.FromRoundedRect(slideNavigationController.View.Bounds, 4.0f);
            slideNavigationController.View.Layer.ShadowPath = path.CGPath;

            UIPanGestureRecognizer panRecogniser = new UIPanGestureRecognizer(HandlePan);
            slideNavigationController.NavigationBar.AddGestureRecognizer(panRecogniser);
            slideNavigationController.View.AddGestureRecognizer(panRecogniser);

            slideInTapGestureRecognizer = new UITapGestureRecognizer(HandleSlideInTap);
            slideInTapGestureRecognizer.Enabled = false;
            slideNavigationController.View.AddGestureRecognizer(slideInTapGestureRecognizer);
        }
开发者ID:patrikahlenius,项目名称:LWSlideViewController,代码行数:38,代码来源:LWSlideViewController.cs


注:本文中的UINavigationController.DidMoveToParentViewController方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。