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);
}
}