Exemple #1
0
        public ConfigureClassGradesListViewController()
        {
            AutomaticallyAdjustsScrollViewInsets = false;

            // Set title to class name
            m_classBindingHost.SetBinding(nameof(ViewModel.Class.Name), delegate
            {
                Title = ViewModel.Class.Name;
            });

            // Creating a table view programmatically: https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/TableView_iPhone/CreateConfigureTableView/CreateConfigureTableView.html#//apple_ref/doc/uid/TP40007451-CH6-SW4
            // Xamarin: https://developer.xamarin.com/guides/ios/user_interface/controls/tables/populating-a-table-with-data/
            _tableView = new BareUIStaticGroupedTableView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false
            };
            View.Add(_tableView);
            _tableView.StretchWidthAndHeight(View);

            var backButton = new UIBarButtonItem()
            {
                Title = "Back"
            };

            backButton.Clicked += new WeakEventHandler <EventArgs>(BackButton_Clicked).Handler;

            NavigationItem.LeftBarButtonItem = backButton;
        }
        public ConfigureClassRoundGradesUpViewController()
        {
            Title = "Round Grades Up";

            _tableView = new BareUIStaticGroupedTableView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false
            };
            View.Add(_tableView);
            _tableView.StretchWidthAndHeight(View);
        }
Exemple #3
0
        public ConfigureClassGpaTypeViewController()
        {
            Title = PowerPlannerResources.GetString("Settings_GradeOptions_GpaType");

            _tableView = new BareUIStaticGroupedTableView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false
            };
            View.Add(_tableView);
            _tableView.StretchWidthAndHeight(View);
        }
Exemple #4
0
        public ReminderSettingsViewController()
        {
            Title = "Reminders";

            _tableView = new BareUIStaticGroupedTableView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false
            };
            View.Add(_tableView);
            _tableView.StretchWidthAndHeight(View);

            MainScreenViewController.ListenToTabBarHeightChanged(ref _tabBarHeightListener, delegate
            {
                _tableView.ContentInset = new UIEdgeInsets(0, 0, MainScreenViewController.TAB_BAR_HEIGHT, 0);
            });
        }
        public SettingsListViewController()
        {
            AutomaticallyAdjustsScrollViewInsets = false;
            Title = "More";

            // Creating a table view programmatically: https://developer.apple.com/library/content/documentation/UserExperience/Conceptual/TableView_iPhone/CreateConfigureTableView/CreateConfigureTableView.html#//apple_ref/doc/uid/TP40007451-CH6-SW4
            // Xamarin: https://developer.xamarin.com/guides/ios/user_interface/controls/tables/populating-a-table-with-data/
            _tableView = new BareUIStaticGroupedTableView()
            {
                TranslatesAutoresizingMaskIntoConstraints = false
            };
            View.Add(_tableView);
            _tableView.StretchWidthAndHeight(View);

            MainScreenViewController.ListenToTabBarHeightChanged(ref _tabBarHeightListener, delegate
            {
                _tableView.ContentInset = new UIEdgeInsets(0, 0, MainScreenViewController.TAB_BAR_HEIGHT, 0);
            });
        }