public TabController()
        {
            var socketController = new RootController ();
            socketController.Title = "Sockets";
            socketController.View.BackgroundColor = UIColor.Green;

            var settingsController = new SettingsController ();
            settingsController.Title = "Settings";
            settingsController.View.BackgroundColor = UIColor.Red;

            var workerController = new WorkerController ();
            workerController.Title = "Worker";
            workerController.View.BackgroundColor = UIColor.Blue;

            var tabs = new UIViewController[] {
                socketController, settingsController, workerController
            };

            ViewControllers = tabs;
        }
Пример #2
0
        public TabController()
        {
            var socketController = new RootController();

            socketController.Title = "Sockets";
            socketController.View.BackgroundColor = UIColor.Green;

            var settingsController = new SettingsController();

            settingsController.Title = "Settings";
            settingsController.View.BackgroundColor = UIColor.Red;

            var workerController = new WorkerController();

            workerController.Title = "Worker";
            workerController.View.BackgroundColor = UIColor.Blue;

            var tabs = new UIViewController[] {
                socketController, settingsController, workerController
            };

            ViewControllers = tabs;
        }