public override void RenderBefore(RenderContext context) { Debug.Assert(_ownerForm != null); // Ask the owning form to perform rendering in this element _ownerForm.WindowChromeCompositionPaint(context); }