Esempio n. 1
0
        /// <summary>
        /// Draws layout entities.
        /// </summary>
        /// <param name="State">Current drawing state.</param>
        public override void Draw(DrawingState State)
        {
            ILayoutElement[] Children = this.DynamicChildren;

            if (!(Children is null))
            {
                foreach (ILayoutElement E in Children)
                {
                    if (E.IsVisible)
                    {
                        E.Draw(State);
                    }
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Measures layout entities and defines unassigned properties, related to positions.
        /// </summary>
        /// <param name="State">Current drawing state.</param>
        public override void MeasurePositions(DrawingState State)
        {
            base.MeasurePositions(State);

            ILayoutElement[] Children = this.DynamicChildren;

            if (!(Children is null))
            {
                foreach (ILayoutElement E in Children)
                {
                    if (E.IsVisible)
                    {
                        E.MeasurePositions(State);
                    }
                }
            }
        }