public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); if (AutoHideSearch) { if (enableSearch) { if (TableView.ContentOffset.Y < 44) { TableView.ContentOffset = new PointF(0, 44); } } } if (root == null) { return; } root.Prepare(); NavigationItem.HidesBackButton = !pushing; if (root.Caption != null) { NavigationItem.Title = root.Caption; } if (dirty) { tableView.ReloadData(); dirty = false; } }
void PrepareRoot(RootElement root) { this.root = root; if (root != null) { root.Prepare(); } }
public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); if (root == null) { return; } root.Prepare(); NavigationItem.HidesBackButton = !pushing; if (root.Caption != null) { NavigationItem.Title = root.Caption; } if (dirty) { tableView.ReloadData(); dirty = false; } }
public override void ViewWillAppear(bool animated) { base.ViewWillAppear(animated); if (AutoHideSearch) { if (enableSearch) { this.ClearSearchBar(); } } NavigationItem.HidesBackButton = !pushing; if (root == null) { return; } root.Prepare(); if (root.Caption != null) { NavigationItem.Title = root.Caption; } if (root.CaptionPrompt != null) { this.NavigationItem.Prompt = root.CaptionPrompt; } if (dirty) { tableView.ReloadData(); dirty = false; } try { tableView.ScrollToRow(root.PathForRadio(root.Value), UITableViewScrollPosition.Middle, false); } catch (Exception) {} }
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; }
void PrepareRoot (RootElement root) { this.root = root; if (root != null) root.Prepare (); }
void PrepareRoot (RootElement root) { this.root = root; root.Prepare (); }