ComponentFactory.Krypton.Toolkit.ViewDrawEmptyContent.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");

            if (Enabled)
                base.SetPalette(_paletteContentNormal);
            else
                base.SetPalette(_paletteContentDisabled);

            base.RenderBefore(context);
        }