Пример #1
0
        /// <summary>
        /// Create the ViewControllers that we are going to use for the tabs:
        /// Sessions, Speakers
        /// </summary>
        /// <remarks>
        /// Some icons from glyphish.com -- CCA so DON'T FORGET attribution on the website!!
        /// </remarks>
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            var dvc = new HomeViewController ();

            navScheduleController = new MonoTouch.UIKit.UINavigationController();
            navScheduleController.PushViewController(dvc, false);
            navScheduleController.NavigationBar.BarStyle = UIBarStyle.Black;
            navScheduleController.TopViewController.Title ="What's on";
            navScheduleController.TabBarItem = new UITabBarItem("What's on", UIImage.FromFile("Images/83-calendar.png"), 0);

            var svc = new SpeakersViewController();
            navSpeakerController = new MonoTouch.UIKit.UINavigationController();
            navSpeakerController.PushViewController(svc, false);
            navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f,169.0f,198.0f,255.0f);
            navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
            navSpeakerController.TopViewController.Title ="Speakers";
            navSpeakerController.TabBarItem = new UITabBarItem("Speakers", UIImage.FromFile("Images/tabspeaker.png"), 1);

            var ssvc = new TagsViewController();
            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(ssvc, false);
            navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
            navSessionController.TopViewController.Title ="Sessions";
            navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("Images/124-bullhorn.png"), 2);

            var mvc = new MapFlipViewController();
            mvc.Title = "Map";
            mvc.TabBarItem = new UITabBarItem("Map", UIImage.FromFile("Images/103-map.png"), 5);

            var fvc = new FavoritesViewController();
            navFavoritesController = new MonoTouch.UIKit.UINavigationController();
            navFavoritesController.PushViewController(fvc, false);
            navFavoritesController.NavigationBar.BarStyle = UIBarStyle.Black;
            navFavoritesController.TopViewController.Title ="My Schedule";
            navFavoritesController.TabBarItem = new UITabBarItem("My Schedule", UIImage.FromFile("Images/28-star.png"), 7);

            var u = new UIViewController[]
            {
                  navScheduleController
                , navSpeakerController
                , navSessionController
                , mvc
                , navFavoritesController
            };

            SelectedIndex = 0;
            ViewControllers = u;
            MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;

            var backgroundColor = UIColor.FromPatternImage(UIImage.FromFile("Background.png"));
            MoreNavigationController.View.BackgroundColor = backgroundColor;

            CustomizableViewControllers = new UIViewController[]{};
        }
Пример #2
0
        /// <summary>
        /// Create the four ViewControllers that we are going to use for the tabs:
        /// Sessions, Speakers, Rss, Twitter
        /// </summary>
        public override void ViewDidLoad()
        {
            base.ViewDidLoad ();

            var dvc = new DaysViewController ();
            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(dvc, false);
            navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
            navSessionController.TopViewController.Title ="Sessions";
            navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("tabsession.png"), 0);
            //http://discussions.apple.com/thread.jspa?threadID=1649012&tstart=0
            //navSessionController.NavigationBar.TintColor = UIColor.Cyan;

            var svc = new SpeakersViewController();
            navSpeakerController = new MonoTouch.UIKit.UINavigationController();
            navSpeakerController.PushViewController(svc, false);
            navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f,169.0f,198.0f,255.0f);
            navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
            navSpeakerController.TopViewController.Title ="Speakers";
            navSpeakerController.TabBarItem = new UITabBarItem("Speakers", UIImage.FromFile("tabmono.png"), 0);

            var rvc = new BlogViewController();
            navBlogController = new MonoTouch.UIKit.UINavigationController();
            navBlogController.PushViewController(rvc, false);
            navBlogController.NavigationBar.BarStyle = UIBarStyle.Black;
            navBlogController.TopViewController.Title ="Blog";
            navBlogController.TabBarItem = new UITabBarItem("Blog", UIImage.FromFile("tabblogger.png"), 0);

            var tvc = new TwitterViewController();
            navTwitterController = new MonoTouch.UIKit.UINavigationController();
            navTwitterController.PushViewController(tvc, false);
            navTwitterController.NavigationBar.BarStyle = UIBarStyle.Black;
            navTwitterController.TopViewController.Title ="Twitter";
            navTwitterController.TabBarItem = new UITabBarItem("Twitter", UIImage.FromFile("tabtwitter.png"), 0);

            var mvc = new MapFlipViewController();
            mvc.Title = "Map";
            mvc.TabBarItem = new UITabBarItem("Map", UIImage.FromFile("tabmap.png"), 0);

            var pvc = new SponsorsViewController();
            pvc.Title = "Sponsors";
            pvc.TabBarItem = new UITabBarItem("Sponsors", UIImage.FromFile("tabsponsor.png"), 0);

            var u = new UIViewController[]{
                navSessionController, navSpeakerController, navTwitterController, mvc, pvc, navBlogController};

            this.SelectedViewController = navSessionController;

            this.ViewControllers = u;

            this.MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
        }
        private void CreateTabs()
        {
            var svc = new BarcodeViewController(false);

            NavStartController = new MonoTouch.UIKit.UINavigationController();
            NavStartController.PushViewController(svc, false);
            NavStartController.NavigationBar.TintColor = UIColor.Black;
            NavStartController.TabBarItem = new UITabBarItem("Barcode", UIImage.FromBundle("Images/icon_barcode.png"), 0);

            this.ViewControllers = new UIViewController[] { NavStartController };

            MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
        }
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			var scheduleViewController = new ScheduledSessionDialogViewController ();
			navScheduleController = new MonoTouch.UIKit.UINavigationController ();
			navScheduleController.PushViewController (scheduleViewController, false);
			SetSessionBackground (navScheduleController.NavigationBar);
			navScheduleController.NavigationBar.BarStyle = UIBarStyle.Black;
			navScheduleController.NavigationBar.BackgroundColor = UIColor.Clear;
			navScheduleController.NavigationBar.TintColor = UIColor.Clear;
			navScheduleController.TopViewController.Title = "Schedule";
			navScheduleController.TabBarItem = new UITabBarItem ("Schedule", UIImage.FromFile ("images/glyphicons_054_clock.png"), 0);
			
			var sessionsViewController = new SessionDialogViewController ();
			navSessionController = new MonoTouch.UIKit.UINavigationController ();
			navSessionController.PushViewController (sessionsViewController, false);
			SetSessionBackground (navSessionController.NavigationBar);
			navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
			navSessionController.NavigationBar.BackgroundColor = UIColor.Clear;
			navSessionController.NavigationBar.TintColor = UIColor.Clear;
			navSessionController.TabBarItem = new UITabBarItem ("Sessions", UIImage.FromFile ("images/glyphicons_061_keynote.png"), 0);
			
			var speakersViewController = new SpeakerDialogViewController ();
			navSpeakerController = new MonoTouch.UIKit.UINavigationController ();
			navSpeakerController.PushViewController (speakersViewController, false);
			SetSessionBackground (navSpeakerController.NavigationBar);
			navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
			navSpeakerController.NavigationBar.TintColor = UIColor.Clear;
			navSpeakerController.TabBarItem = new UITabBarItem ("Speakers", UIImage.FromFile ("images/glyphicons_042_group.png"), 0);

			var mapViewController = new MapDialogViewController ();
			mapController = new MonoTouch.UIKit.UINavigationController ();
			mapController.PushViewController (mapViewController, false);
			SetSessionBackground (mapController.NavigationBar);
			mapController.NavigationBar.BarStyle = UIBarStyle.Black;
			mapController.NavigationBar.BackgroundColor = UIColor.Clear;
			mapController.NavigationBar.TintColor = UIColor.Clear;
			mapController.TabBarItem = new UITabBarItem ("Maps", UIImage.FromFile ("images/glyphicons_060_compass.png"), 0);			
			
			var u = new UIViewController[]{
				navScheduleController, navSessionController, navSpeakerController, mapController};
			
			this.ViewControllers = u;
			
			this.SelectedViewController = navSessionController;
			
			this.MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
		}
Пример #5
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // Create the main view controller - the 'first' view in the app
            var vc = new MainViewController ();

            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(vc, false);
            navigationController.TopViewController.Title ="Roget's 1911";

            // Create the main window and add the navigation controller as a subview
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible ();
            return true;
        }
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // Create the main view controller - the 'first' view in the app
            var vc = new MainViewController();


            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(vc, false);
            navigationController.TopViewController.Title = "Roget's 1911";


            // Create the main window and add the navigation controller as a subview
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible();
            return(true);
        }
Пример #7
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // Create the main view controller - the 'first' view in the app
            var vc = new MainViewController ();

            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(vc, false);
            navigationController.TopViewController.Title ="RestGuide";
            navigationController.NavigationBar.TintColor = UIColor.FromRGB(140/255f, 191/255f, 38/255f);
            navigationController.NavigationBar.BarStyle = UIBarStyle.Black;

            // Create the main window and add the navigation controller as a subview
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible ();
            return true;
        }
        public override bool FinishedLaunching (UIApplication app, NSDictionary options)
        {
            // Create the main view controller - the 'first' view in the app
            var vc = new MainViewController ();
			
			// Create a navigation controller, to which we'll add the view
			navigationController = new UINavigationController();
			navigationController.PushViewController(vc, false);
			navigationController.TopViewController.Title ="RestGuide";
			navigationController.NavigationBar.TintColor = UIColor.FromRGB(140/255f, 191/255f, 38/255f);
			navigationController.NavigationBar.BarStyle = UIBarStyle.Black;
			
            // Create the main window and add the navigation controller as a subview
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible ();
            return true;
        }
Пример #9
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _client.LoginAsync(USERNAME,PASSWORD, x => {
                FinishLaunching();
            });

            // Create the main view controller - the 'first' view in the app
            _tvc = new DBFileTableViewController();

            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(_tvc, false);
            navigationController.TopViewController.Title ="Dropbox Test";

            // Create the main window and add the navigation controller as a subview
            window = new UIWindow (UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible ();
            return true;
        }
Пример #10
0
        // This method is invoked when the application has loaded its UI and its ready to run
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            _client.LoginAsync(USERNAME, PASSWORD, x => {
                FinishLaunching();
            });

            // Create the main view controller - the 'first' view in the app
            _tvc = new DBFileTableViewController();

            // Create a navigation controller, to which we'll add the view
            navigationController = new UINavigationController();
            navigationController.PushViewController(_tvc, false);
            navigationController.TopViewController.Title = "Dropbox Test";


            // Create the main window and add the navigation controller as a subview
            window = new UIWindow(UIScreen.MainScreen.Bounds);
            window.AddSubview(navigationController.View);
            window.MakeKeyAndVisible();
            return(true);
        }
Пример #11
0
		/// <summary>
		/// Create the ViewControllers that we are going to use for the tabs:
		/// Sessions, Speakers
		/// </summary>
		/// <remarks>
		/// Some icons from glyphish.com -- CCA so DON'T FORGET attribution on the website!!
		/// </remarks>
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();

			var dvc = new HomeViewController ();

			navScheduleController = new MonoTouch.UIKit.UINavigationController();
			navScheduleController.PushViewController(dvc, false);
			navScheduleController.NavigationBar.BarStyle = UIBarStyle.Black;
			navScheduleController.NavigationBar.TintColor = HeaderColor;
			navScheduleController.TopViewController.Title ="What's on";
			navScheduleController.TabBarItem = new UITabBarItem("What's on", UIImage.FromFile("Images/83-calendar.png"), 0);
			
			var svc = new SpeakersViewController();
			navSpeakerController = new MonoTouch.UIKit.UINavigationController();
			navSpeakerController.PushViewController(svc, false);
			navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f,169.0f,198.0f,255.0f);
			navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
			navSpeakerController.NavigationBar.TintColor = HeaderColor;
			navSpeakerController.TopViewController.Title ="Speakers";
			navSpeakerController.TabBarItem = new UITabBarItem("Speakers", UIImage.FromFile("Images/tabspeaker.png"), 1);
			
			var ssvc = new TagsViewController(); 
			navSessionController = new MonoTouch.UIKit.UINavigationController();
			navSessionController.PushViewController(ssvc, false);
			navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
			navSessionController.NavigationBar.TintColor = HeaderColor;
			navSessionController.TopViewController.Title ="Sessions by tag";
			navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("Images/124-bullhorn.png"), 2);
			
			var mvc = new MapFlipViewController();
			mvc.Title = "Map";
			mvc.TabBarItem = new UITabBarItem("Map", UIImage.FromFile("Images/103-map.png"), 5);
			
			var fvc = new FavoritesViewController();
			navFavoritesController = new MonoTouch.UIKit.UINavigationController();
			navFavoritesController.PushViewController(fvc, false);
			navFavoritesController.NavigationBar.BarStyle = UIBarStyle.Black;
			navFavoritesController.NavigationBar.TintColor = HeaderColor;
			navFavoritesController.TopViewController.Title ="My Schedule";
			navFavoritesController.TabBarItem = new UITabBarItem("My Schedule", UIImage.FromFile("Images/28-star.png"), 7);
			
			var u = new UIViewController[]
			{
				  navScheduleController
				, navSpeakerController
				, navSessionController
				, mvc
				, navFavoritesController
			};
			
			this.SelectedIndex = 0;
			this.ViewControllers = u;
			this.MoreNavigationController.NavigationBar.TintColor = HeaderColor;
			this.MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
			
			var backgroundColor = UIColor.FromPatternImage(UIImage.FromFile("Background.png"));
			this.MoreNavigationController.View.BackgroundColor = backgroundColor;
			
			this.CustomizableViewControllers = new UIViewController[]{};
		}
Пример #12
0
        /// <summary>
        /// Create the four ViewControllers that we are going to use for the tabs:
        /// Sessions, Speakers, Rss, Twitter
        /// </summary>
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            var dvc = new DaysViewController();

            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(dvc, false);
            navSessionController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navSessionController.TopViewController.Title = "Sessions";
            navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("tabsession.png"), 0);
            //http://discussions.apple.com/thread.jspa?threadID=1649012&tstart=0
            //navSessionController.NavigationBar.TintColor = UIColor.Cyan;


            var svc = new SpeakersViewController();

            navSpeakerController = new MonoTouch.UIKit.UINavigationController();
            navSpeakerController.PushViewController(svc, false);
            navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f, 169.0f, 198.0f, 255.0f);
            navSpeakerController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navSpeakerController.TopViewController.Title = "Speakers";
            navSpeakerController.TabBarItem = new UITabBarItem("Speakers", UIImage.FromFile("tabmono.png"), 0);

            var rvc = new BlogViewController();

            navBlogController = new MonoTouch.UIKit.UINavigationController();
            navBlogController.PushViewController(rvc, false);
            navBlogController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navBlogController.TopViewController.Title = "Blog";
            navBlogController.TabBarItem = new UITabBarItem("Blog", UIImage.FromFile("tabblogger.png"), 0);

            var tvc = new TwitterViewController();

            navTwitterController = new MonoTouch.UIKit.UINavigationController();
            navTwitterController.PushViewController(tvc, false);
            navTwitterController.NavigationBar.BarStyle  = UIBarStyle.Black;
            navTwitterController.TopViewController.Title = "Twitter";
            navTwitterController.TabBarItem = new UITabBarItem("Twitter", UIImage.FromFile("tabtwitter.png"), 0);


            var mvc = new MapFlipViewController();

            mvc.Title      = "Map";
            mvc.TabBarItem = new UITabBarItem("Map", UIImage.FromFile("tabmap.png"), 0);


            var pvc = new SponsorsViewController();

            pvc.Title      = "Sponsors";
            pvc.TabBarItem = new UITabBarItem("Sponsors", UIImage.FromFile("tabsponsor.png"), 0);

            var u = new UIViewController[] {
                navSessionController, navSpeakerController, navTwitterController, mvc, pvc, navBlogController
            };

            this.SelectedViewController = navSessionController;

            this.ViewControllers = u;

            this.MoreNavigationController.NavigationBar.BarStyle = UIBarStyle.Black;
        }
        public CustomFlyoutNavigationController()
        {
            var dvc = new HomeViewController ();

            navScheduleController = new MonoTouch.UIKit.UINavigationController();
            navScheduleController.PushViewController(dvc, false);
            navScheduleController.NavigationBar.BarStyle = UIBarStyle.Black;
            //			navScheduleController.TopViewController.Title ="What's on";
            //			navScheduleController.TabBarItem = new UITabBarItem("What's on", UIImage.FromFile("Images/83-calendar.png"), 0);

            if (UIDevice.CurrentDevice.CheckSystemVersion (6,0)) {
                // iOS 6 and above support CollectionView
                var layout = new UICollectionViewFlowLayout (){
                    SectionInset = new UIEdgeInsets (0,0,0,0),
                    ItemSize = SpeakerCollectionCell.Size,
                    MinimumInteritemSpacing = 10,
                    MinimumLineSpacing = 5
                };
                var svc = new SpeakersCollectionViewController (layout); // COLLECTION
                navSpeakerController = new MonoTouch.UIKit.UINavigationController();
                navSpeakerController.PushViewController(svc, false);
                navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f,169.0f,198.0f,255.0f);
                navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
                navSpeakerController.TopViewController.Title ="Speakers";
            } else {
                // use a table
                var svc = new SpeakersViewController(); // TABLE
                navSpeakerController = new MonoTouch.UIKit.UINavigationController();
                navSpeakerController.PushViewController (svc, false);
                navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
            }

            var ssvc = new TagsViewController();
            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(ssvc, false);
            navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
            //			navSessionController.TopViewController.Title ="Sessions";
            //			navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("Images/124-bullhorn.png"), 2);

            var mapViewController = new MapFlipViewController();
            mapViewController.View.BackgroundColor = UIColor.Black;

            var fvc = new FavoritesViewController();
            navFavoritesController = new MonoTouch.UIKit.UINavigationController();
            navFavoritesController.PushViewController(fvc, false);

            //			var passbookViewController = new PassKitViewController ();

            var aboutViewController = new AboutViewController ();

            //var roomsViewController = new RoomsViewController ();

            // Create the navigation menu
            NavigationRoot = new RootElement ("Navigation") {
                new Section () {
                    new StyledStringElement ("MonkeySpace 2013"){BackgroundColor = UIColor.Clear, TextColor = UIColor.White, Font = AppDelegate.Current.FontFlyoutMenuSection},
                    new StyledStringElement ("Sessions"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    new StyledStringElement ("Speakers"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    new StyledStringElement ("Favorites"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    //new StyledStringElement ("Room Plan"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    new StyledStringElement ("Location Map"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    //new StyledStringElement ("Passbook"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    new StyledStringElement ("About MonkeySpace"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                }
            };
            // Supply view controllers corresponding to menu items:
            ViewControllers = new UIViewController[] {
                navScheduleController
                , navSessionController
                , navSpeakerController
                , navFavoritesController
                //, roomsViewController
                , mapViewController
                //, passbookViewController
                , aboutViewController
            };
            if (MonoTouch.PassKit.PKPassLibrary.IsAvailable) {
                //TODO: only add the passkit screen if necessary
            }

            View.BackgroundColor = UIColor.Blue;
        }
Пример #14
0
        protected override AuthenticateUIType GetPlatformUI(UIView view)
        {
            var navigation = new MonoTouch.UIKit.UINavigationController(new WebAuthenticatorController(this, view));

            return(navigation);
        }
        public CustomFlyoutNavigationController()
        {
            var dvc = new HomeViewController();

            navScheduleController = new MonoTouch.UIKit.UINavigationController();
            navScheduleController.PushViewController(dvc, false);
            navScheduleController.NavigationBar.BarStyle = UIBarStyle.Black;
            //			navScheduleController.TopViewController.Title ="What's on";
            //			navScheduleController.TabBarItem = new UITabBarItem("What's on", UIImage.FromFile("Images/83-calendar.png"), 0);

            if (UIDevice.CurrentDevice.CheckSystemVersion(6, 0))
            {
                // iOS 6 and above support CollectionView
                var layout = new UICollectionViewFlowLayout()
                {
                    SectionInset            = new UIEdgeInsets(0, 0, 0, 0),
                    ItemSize                = SpeakerCollectionCell.Size,
                    MinimumInteritemSpacing = 10,
                    MinimumLineSpacing      = 5
                };
                var svc = new SpeakersCollectionViewController(layout);                  // COLLECTION
                navSpeakerController = new MonoTouch.UIKit.UINavigationController();
                navSpeakerController.PushViewController(svc, false);
                navSpeakerController.TopViewController.View.BackgroundColor = new UIColor(65.0f, 169.0f, 198.0f, 255.0f);
                navSpeakerController.NavigationBar.BarStyle  = UIBarStyle.Black;
                navSpeakerController.TopViewController.Title = "Speakers";
            }
            else
            {
                // use a table
                var svc = new SpeakersViewController();                 // TABLE
                navSpeakerController = new MonoTouch.UIKit.UINavigationController();
                navSpeakerController.PushViewController(svc, false);
                navSpeakerController.NavigationBar.BarStyle = UIBarStyle.Black;
            }

            var ssvc = new TagsViewController();

            navSessionController = new MonoTouch.UIKit.UINavigationController();
            navSessionController.PushViewController(ssvc, false);
            navSessionController.NavigationBar.BarStyle = UIBarStyle.Black;
            //			navSessionController.TopViewController.Title ="Sessions";
            //			navSessionController.TabBarItem = new UITabBarItem("Sessions", UIImage.FromFile("Images/124-bullhorn.png"), 2);

            var mapViewController = new MapFlipViewController();

            mapViewController.View.BackgroundColor = UIColor.Black;

            var fvc = new FavoritesViewController();

            navFavoritesController = new MonoTouch.UIKit.UINavigationController();
            navFavoritesController.PushViewController(fvc, false);


//			var passbookViewController = new PassKitViewController ();

            var aboutViewController = new AboutViewController();


            //var roomsViewController = new RoomsViewController ();

            // Create the navigation menu
            NavigationRoot = new RootElement("Navigation")
            {
                new Section()
                {
                    new StyledStringElement("MonkeySpace 2013")
                    {
                        BackgroundColor = UIColor.Clear, TextColor = UIColor.White, Font = AppDelegate.Current.FontFlyoutMenuSection
                    },
                    new StyledStringElement("Sessions")
                    {
                        BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu
                    },
                    new StyledStringElement("Speakers")
                    {
                        BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu
                    },
                    new StyledStringElement("Favorites")
                    {
                        BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu
                    },
                    //new StyledStringElement ("Room Plan"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    new StyledStringElement("Location Map")
                    {
                        BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu
                    },
                    //new StyledStringElement ("Passbook"){BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu},
                    new StyledStringElement("About MonkeySpace")
                    {
                        BackgroundColor = UIColor.Clear, TextColor = UIColor.LightGray, Font = AppDelegate.Current.FontFlyoutMenu
                    },
                }
            };
            // Supply view controllers corresponding to menu items:
            ViewControllers = new UIViewController[] {
                navScheduleController
                , navSessionController
                , navSpeakerController
                , navFavoritesController
                //, roomsViewController
                , mapViewController
                //, passbookViewController
                , aboutViewController
            };
            if (MonoTouch.PassKit.PKPassLibrary.IsAvailable)
            {
                //TODO: only add the passkit screen if necessary
            }

            View.BackgroundColor = UIColor.Blue;
        }