本文整理汇总了C#中UIStoryboardSegue类的典型用法代码示例。如果您正苦于以下问题:C# UIStoryboardSegue类的具体用法?C# UIStoryboardSegue怎么用?C# UIStoryboardSegue使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
UIStoryboardSegue类属于命名空间,在下文中一共展示了UIStoryboardSegue类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: PrepareForSegue
public override void PrepareForSegue(UIStoryboardSegue segue, NSObject sender)
{
var sessionsVC = (SessionsViewController)segue.DestinationViewController;
sessionsVC.Speaker = Speaker;
base.PrepareForSegue (segue, sender);
}
示例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;
}
}
示例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);
}
示例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);
}
示例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]);
}
}
示例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);
}
示例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;
}
}
示例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;
}
}
}
示例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;
}
}
}
}
示例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);
});
}
示例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;
}
}
示例12: UnwindInMaster
void UnwindInMaster(UIStoryboardSegue segue)
{
/*
Empty. Exists solely so that "unwind in master" segues can
find this instance as a destination.
*/
}
示例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;
}
}
}
}
示例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;
}
}
示例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";
}