Base class for all elements in MonoTouch.Dialog
Inheritance: IElement, IDisposable
Ejemplo n.º 1
0
 public void Remove(Element e)
 {
     if (e == null)
         return;
     for (int i = Elements.Count; i > 0;)
     {
         i--;
         if (Elements[i] == e)
         {
             RemoveRange(i, 1);
             return;
         }
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Adds a new child Element to the Section
        /// </summary>
        /// <param name="element">
        /// An element to add to the section.
        /// </param>
        public void Add(Element element)
        {
            if (element == null)
                return;

            Elements.Add(element);
            element.Parent = this;

            if (Parent != null)
                InsertVisual(Elements.Count - 1, UITableViewRowAnimation.None, 1);
        }