Exemple #1
0
        /// <summary>
        /// Perform rendering before child elements are rendered.
        /// </summary>
        /// <param name="context">Rendering context.</param>
        public override void RenderBefore(RenderContext context)
        {
            // Ensure the child text view has same state as us
            this[0].ElementState = ElementState;

            // Draw background using the design time colors
            DesignTimeDraw.DrawArea(Ribbon, context, ClientRectangle, State);

            base.RenderBefore(context);
        }
Exemple #2
0
        /// <summary>
        /// Perform rendering before child elements are rendered.
        /// </summary>
        /// <param name="context">Rendering context.</param>
        public override void RenderBefore(RenderContext context)
        {
            // At design time we draw the selection flap
            if (_ribbon.InDesignHelperMode)
            {
                DesignTimeDraw.DrawFlapArea(_ribbon, context, ClientRectangle, State);
            }

            // Let base class draw contained items
            base.RenderBefore(context);
        }