Esempio n. 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();
            // Perform any additional setup after loading the view, typically from a nib.

            TableView.Source = new ItemsDataSource(tableData, SelectedAction);
            TableView.ShowsVerticalScrollIndicator = true;
            TableView.RegisterClassForCellReuse(typeof(UITableViewCell), CELL_IDENTIFIER);

            UITapGestureRecognizer tapOutside = new UITapGestureRecognizer();

            CancelButton.AddTarget(Button_TouchUpInside, UIControlEvent.TouchUpInside);
            CancelButton.Layer.CornerRadius = 3;

            PopUpView.Layer.CornerRadius = 3;

            UIView padding     = new UIView(new CGRect(0, 0, 30, 20));
            var    RightButton = new UIButton();

            RightButton.SetImage(UIImage.FromBundle("search"), UIControlState.Normal);
            padding.AddSubview(RightButton);
            RightButton.Frame             = new CGRect(5, 0, 20, 20);
            RightButton.TintColor         = UIColor.Red;
            searchTextField.RightView     = padding;
            searchTextField.RightViewMode = UITextFieldViewMode.Always;

            searchTextField.AddTarget(SearchTextField_ValueChanged, UIControlEvent.EditingChanged);
        }