• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# UIStoryboardSegue类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中UIStoryboardSegue的典型用法代码示例。如果您正苦于以下问题:C# UIStoryboardSegue类的具体用法?C# UIStoryboardSegue怎么用?C# UIStoryboardSegue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



UIStoryboardSegue类属于命名空间,在下文中一共展示了UIStoryboardSegue类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: PrepareForSegue

        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            var sessionsVC = (SessionsViewController)segue.DestinationViewController;
            sessionsVC.Speaker = Speaker;

            base.PrepareForSegue (segue, sender);
        }
开发者ID:flolovebit,项目名称:xamarin-evolve-2014,代码行数:7,代码来源:SpeakerDetailViewController.cs


示例2: PrepareForSegue

        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue(segue, sender);
            var DestVC = (ChartDetail)segue.DestinationViewController;

            //�H������5���Ϫ�ƾ�
            DestVC.samples = 5;

            //�P�_�ϥΪ̫��U���ϥ�����
            switch (segue.Identifier)
            {
                case "segBar":
                    DestVC.chart = ChartType.Bar;
                    break;

                case "segCandle":
                    DestVC.chart = ChartType.Candle;
                    break;

                case "segTower":
                    DestVC.chart = ChartType.Tower;
                    break;

                case "segRadar":
                    DestVC.chart = ChartType.Radar;
                    break;

                case "segBubble":
                    DestVC.chart = ChartType.Bubble;
                    break;
            }
        }
开发者ID:Terry-Lin,项目名称:Xamarin,代码行数:32,代码来源:Chart.cs


示例3: PrepareForSegue

		public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender) {
			var destination = segue.DestinationViewController as MovieDetailViewController;
			destination.MovieDetail = this.selectedMovie;
			destination.Configuration = this.configuration;

			base.PrepareForSegue (segue, sender);
		}
开发者ID:RobertAltland,项目名称:MovieExplorer,代码行数:7,代码来源:MovieBrowserViewController.cs


示例4: PrepareForSegue

 public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     // Set sliding view controller
     ((LeftPanelSegue)segue).SlidingViewController = this.SlidingViewController ();
     // Call base method
     base.PrepareForSegue (segue, sender);
 }
开发者ID:rmenezes,项目名称:ECSlidingViewControllerBinding,代码行数:7,代码来源:LeftPanelViewController.cs


示例5: PrepareForSegue

 public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     if (segue.Identifier == "showDetail") {
         NSIndexPath indexPath = tableView.IndexPathForSelectedRow;
         ((DetailViewController)segue.DestinationViewController).SetDetailItem (rows[indexPath.Row]);
     }
 }
开发者ID:alleeclark,项目名称:morganHack,代码行数:7,代码来源:MasterViewController.cs


示例6: PrepareForSegue

        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            var detail = segue.DestinationViewController as DetailThemeController;
            detail.Recipe = recipes [DishTableView.IndexPathForSelectedRow.Row];

            base.PrepareForSegue (segue, sender);
        }
开发者ID:alleeclark,项目名称:morganHack,代码行数:7,代码来源:ListThemeController.cs


示例7: PrepareForSegue

		public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
		{
			base.PrepareForSegue(segue, sender);
			if (segue.Identifier == "Notifications2Notifications")
			{
				notificationFeedTableViewController = (NotificationFeedTableViewController)segue.DestinationViewController;
				notificationFeedTableViewController.Master = this;
				notificationFeedTableViewController.Target = FeedTypeEnum.FeedType.NotificationFeed;
				notificationFeedTableViewController.EmptyTableString = Strings.no_notifications;
				notificationFeedTableViewController.NoTableData += delegate
				{
					HideClearButton();
				};
				notificationFeedTableViewController.HasTableData += delegate
				{
					ShowClearButton();
				};
			}
			else if (segue.Identifier == "Notification2PendingFollowers")
			{
				PendingFollowersTableViewController vc = (PendingFollowersTableViewController)segue.DestinationViewController;
				vc.TableItems = PendingUsers;
			}

		}
开发者ID:natevarghese,项目名称:XamarinTen,代码行数:25,代码来源:NotificationsViewController.cs


示例8: PrepareForSegue

      public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
      {

         if (segue.Identifier == "segueResimGonder")
         { // set in Storyboard
            {

               var navctlr = segue.DestinationViewController as imageViewCode;

               if (navctlr != null)
                  navctlr.ImgUrl = linkBilgisi;

    
            }
         }


         else  if (segue.Identifier == "DokGosterX")
         { // set in Storyboard
            {

               var navctlr = segue.DestinationViewController as docView;

               if (navctlr != null)
                  navctlr.DokAdresi = dokumanadresi;


            }
         }
      }
开发者ID:hhempel,项目名称:StoryboardTables,代码行数:30,代码来源:AsyncDownload.cs


示例9: PrepareForSegue

        /******************************* SEGUE *******************************/
        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue (segue, sender);

            var navCon = segue.DestinationViewController as UINavigationController;
            if (navCon != null) {
                if (segue.Identifier == "searchSegue") {
                    var destination = navCon.TopViewController as SearchTableViewController;
                    if (destination != null) {
                        destination.Student = Student;
                    }
                }
                if (segue.Identifier == "workshopsSegue") {
                    var destination = navCon.TopViewController as WorkshopSetTableViewController;
                    if (destination != null) {
                        destination.Student = Student;
                    }
                }
                if (segue.Identifier == "futureBookingsSegue") {
                    var destination = navCon.TopViewController as FutureBookingsTableViewController;
                    if (destination != null) {
                        destination.Student = Student;
                    }
                }
                if (segue.Identifier == "historySegue") {
                    var destination = navCon.TopViewController as HistoryTableViewController;
                    if (destination != null) {
                        destination.Student = Student;
                    }
                }

            }
        }
开发者ID:SDP2015Group7,项目名称:HELPSMobile,代码行数:34,代码来源:MenuTableViewController.cs


示例10: PrepareForSegue

		public async override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
		{
			if (segue.Identifier != "ShowLoadingView")
				return;

			var arg = sender as SegueArg;
			if (arg == null)
				return;

			var selectedCodeSample = arg.Sample;
			if (selectedCodeSample == null)
				return;

			var navigationController = segue.DestinationViewController as UINavigationController;
			var loadingViewController = navigationController?.TopViewController as LoadingViewController;
			if (loadingViewController == null)
				return;

			string segueIdentifier = "ShowResult";

			try {
				var results = await selectedCodeSample.Run ();
				loadingViewController.Results = results;
				loadingViewController.CodeSample = selectedCodeSample;
			} catch (NSErrorException ex) {
				loadingViewController.Error = ex.Error;
				segueIdentifier = "ShowError";
			}

			DispatchQueue.MainQueue.DispatchAsync (() => {
				loadingViewController.PerformSegue (segueIdentifier, loadingViewController);
			});
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:33,代码来源:NavigationController.cs


示例11: PrepareForSegue

        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue (segue, sender);

            switch (segue.Identifier) {
                case "moveToVoteResultViewSegue": {

                    if (segue.DestinationViewController is VoteResultViewController) {
                        var destViewController = segue.DestinationViewController as VoteResultViewController;
                        destViewController.SelectedVote = SelectedVote;
                    }

                }
                break;

                case "moveToVoteFlowSegue": {

                    if (segue.DestinationViewController is VoteTitleViewController) {
                        var destViewController = segue.DestinationViewController as VoteTitleViewController;
                        destViewController.SelectedVote = SelectedVote;
                    }
                }
                break;
            }
        }
开发者ID:FangHuaiAn,项目名称:iVoting,代码行数:25,代码来源:MenuViewController.cs


示例12: UnwindInMaster

		void UnwindInMaster(UIStoryboardSegue segue)
		{
			/*
			Empty. Exists solely so that "unwind in master" segues can
			find this instance as a destination.
			*/
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:7,代码来源:MasterViewController.cs


示例13: PrepareForSegue

/******************************* SEGUE *******************************/
		public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
		{
			base.PrepareForSegue (segue, sender);

			if (segue.Identifier == "registerSegue") {
				var navCon = segue.DestinationViewController as UINavigationController;
				if (navCon != null) {
					RegisterTableViewController regTVC = navCon.TopViewController as RegisterTableViewController;
					if (regTVC != null) {
						regTVC.studentID = usernameBox.Text;
						regTVC.loginVC = this;
					}
				}
			} else if (segue.Identifier == "loginSegue"){
				var splitVC = segue.DestinationViewController as UISplitViewController;
				if (splitVC != null) {
					var navVC = splitVC.ViewControllers[0] as UINavigationController;
					if (navVC != null) {
						var menuTVC = navVC.TopViewController as MenuTableViewController;
						menuTVC.Student = student;
						menuTVC.LoginVC = this;
					}
					var navVC2 = splitVC.ViewControllers[1] as UINavigationController;
					if (navVC2 != null) {
						var fbTVC = navVC2.TopViewController as FutureBookingsTableViewController;
						fbTVC.Student = student;
					}
				}

			}
		}
开发者ID:SDP2015Group7,项目名称:HELPSMobile,代码行数:32,代码来源:LoginViewController.cs


示例14: PrepareForSegue

		public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
		{
			if (!(segue.DestinationViewController is AssetGridViewController) || !(sender is UITableViewCell))
				return;

			var assetGridViewController = (AssetGridViewController)segue.DestinationViewController;
			var cell = (UITableViewCell)sender;

			// Set the title of the AssetGridViewController.
			assetGridViewController.Title = cell.TextLabel.Text;

			// Get the PHFetchResult for the selected section.
			NSIndexPath indexPath = TableView.IndexPathForCell (cell);
			PHFetchResult fetchResult = sectionFetchResults [indexPath.Section];

			if (segue.Identifier == allPhotosSegue) {
				assetGridViewController.AssetsFetchResults = fetchResult;
			} else if (segue.Identifier == collectionSegue) {
				// Get the PHAssetCollection for the selected row.
				var collection = fetchResult [indexPath.Row] as PHAssetCollection;
				if (collection == null)
					return;
				var assetsFetchResult = PHAsset.FetchAssets (collection, null);

				assetGridViewController.AssetsFetchResults = assetsFetchResult;
				assetGridViewController.AssetCollection = collection;
			}
		}
开发者ID:BytesGuy,项目名称:monotouch-samples,代码行数:28,代码来源:RootListViewController.cs


示例15: PrepareForSegue

		public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
		{
			base.PrepareForSegue (segue, sender);

			var nxtVC =	segue.DestinationViewController as SecondViewController;
			nxtVC.Data = "Hello from Root View";
		}
开发者ID:ctsxamarintraining,项目名称:Xamarin,代码行数:7,代码来源:RootViewController.cs


示例16: PrepareForSegue

 public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
 {
     base.PrepareForSegue (segue, sender);
     AppModel.ProviderSearchCriteria.Name=txtProviderName.Text;
     var controller = segue.DestinationViewController as AppModelInterface;
     controller.AppModel=this.AppModel;
 }
开发者ID:quicksilver65,项目名称:MonoMedicalProvider,代码行数:7,代码来源:Search.cs


示例17: PrepareForSegue

        public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
        {
            base.PrepareForSegue(segue, sender);

            var view = (AttachmentController) segue.DestinationViewController;
            view.SelectedMessage = CurrentMessage;
        }
开发者ID:elsewhat,项目名称:AltinnApp,代码行数:7,代码来源:CorrespondenceViewController.cs


示例18: PrepareForSegue

		public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
		{
			base.PrepareForSegue (segue, sender);

			if (segue.Identifier == "showDetail")
				PrepareForSegue ((DetailViewController)segue.DestinationViewController);
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:7,代码来源:CollectionViewController.cs


示例19: UnwindToOuter

		void UnwindToOuter(UIStoryboardSegue segue)
		{
			/*
			Empty. Exists solely so that "unwind to outer" segues can find 
			instances of this class.
			*/
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:7,代码来源:OuterViewController.cs


示例20: PrepareForSegue

		// Provide the zone to `AddRoomViewController`.
		public override void PrepareForSegue (UIStoryboardSegue segue, NSObject sender)
		{
			base.PrepareForSegue (segue, sender);
			if (segue.Identifier == AddRoomsSegue) {
				var addViewController = (AddRoomViewController)segue.IntendedDestinationViewController ();
				addViewController.HomeZone = HomeZone;
			}
		}
开发者ID:CBrauer,项目名称:monotouch-samples,代码行数:9,代码来源:ZoneViewController.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# UISwipeGestureRecognizer类代码示例发布时间:2022-05-24
下一篇:
C# UIState类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap