MonoTouch.Dialog.RootElement.Prepare C# (CSharp) Method

Prepare() private method

private Prepare ( ) : void
return void
		internal void Prepare ()
		{
			int current = 0;
			if (Sections==null) return;
			foreach (Section s in Sections){	
				if (s.Elements==null) return;
				foreach (Element e in s.Elements){
					var re = e as RadioElement;
					if (re != null)
						re.RadioIdx = current++;
					if (UnevenRows == false && e is IElementSizing)
						UnevenRows = true;
				}
			}
		}
		

Usage Example

        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;
            }
        }
All Usage Examples Of MonoTouch.Dialog.RootElement::Prepare