Esempio n. 1
0
		public override void LoadView()
		{
			tableView = MakeTableView(UIScreen.MainScreen.Bounds, Style);
			tableView.AutoresizingMask = UIViewAutoresizing.FlexibleHeight | UIViewAutoresizing.FlexibleWidth| UIViewAutoresizing.FlexibleTopMargin;
			tableView.AutosizesSubviews = true;
			
			if (root != null)
			{
				root.Prepare ();
			}
			
			UpdateSource();
			View = tableView;
			SetupSearch();
			ConfigureTableView();
			
			if (root == null)
			{
				return;
			}
			root.TableView = tableView;
		}
Esempio n. 2
0
		public virtual CustomTableView MakeTableView(RectangleF bounds, UITableViewStyle style)
		{
			var tableView = new CustomTableView (new RectangleF(0, 0, bounds.Width, bounds.Height), style);
			tableView.Frame = new RectangleF(0, 0, tableView.Frame.Width, tableView.Frame.Height);
			return tableView;
		}