public override void LoadView() { View = new UIView { BackgroundColor = ApplicationTheme.BackgroundColor, TintColor = ApplicationTheme.ActionBackgroundColor }; _tableSource = new SettingsTableSource(_viewModel); _settingsTableView = new UITableView { TranslatesAutoresizingMaskIntoConstraints = false, BackgroundColor = UIColor.Clear, Source = _tableSource }; View.AddSubview(_settingsTableView); NSLayoutConstraint.ActivateConstraints(new[] { _settingsTableView.LeadingAnchor.ConstraintEqualTo(View.LeadingAnchor), _settingsTableView.TrailingAnchor.ConstraintEqualTo(View.TrailingAnchor), _settingsTableView.TopAnchor.ConstraintEqualTo(View.SafeAreaLayoutGuide.TopAnchor), _settingsTableView.BottomAnchor.ConstraintEqualTo(View.BottomAnchor) }); // Close button is shown directly in the navigation area, configured in ViewWillAppear _closeButton = new UIBarButtonItem("ModalCloseButtonText".Localize(), UIBarButtonItemStyle.Done, null); }
public DayPickerDelegate(SettingsTableSource controller) { this.controller = controller; }