ComponentFactory.Krypton.Toolkit.ViewDrawContent.RenderBefore C# (CSharp) Method

RenderBefore() public method

Perform rendering before child elements are rendered.
public RenderBefore ( RenderContext context ) : void
context RenderContext Rendering context.
return void
        public override void RenderBefore(RenderContext context)
        {
            Debug.Assert(context != null);

            // Validate incoming reference
            if (context == null) throw new ArgumentNullException("context");

            // Do we need to draw the content?
            if (_paletteContent.GetContentDraw(State) == InheritBool.True)
            {
                bool allowFocusRect = (_testForFocusCues ? ShowFocusCues(context.Control) : true);

                // Draw using memento returned from render layout
                context.Renderer.RenderStandardContent.DrawContent(context,
                                                                   ClientRectangle,
                                                                   _paletteContent,
                                                                   _memento,
                                                                   Orientation,
                                                                   State,
                                                                   DrawContentOnComposition,
                                                                   allowFocusRect);
            }
        }