Пример #1
0
        /// <summary>
        /// Add to list
        /// </summary>
        /// <param name="element"></param>
        public void AddElement(ScrollElement element)
        {
            this.elements.Add(element);
            this.AddChild(element);

            this.RecalculateSize();
            this.RecalculatePosition();
        }
Пример #2
0
        /// <summary>
        /// Add to list
        /// </summary>
        /// <param name="element"></param>
        public void AddElement(ScrollElement element)
        {
            this.elements.Add(element);
            this.AddChild(element);

            this.RecalculateSize();
            this.RecalculatePosition();
        }
Пример #3
0
        /// <summary>
        /// Remove from list
        /// </summary>
        /// <param name="element"></param>
        public void RemoveElement(ScrollElement element)
        {
            this.elements.Remove(element);

            this.RecalculateSize();
        }
Пример #4
0
        /// <summary>
        /// Remove from list
        /// </summary>
        /// <param name="element"></param>
        public void RemoveElement(ScrollElement element)
        {
            this.elements.Remove(element);

            this.RecalculateSize();
        }