Example #1
0
        protected override void onDraw(Context gr)
        {
            base.onDraw(gr);

            gr.Save();

            if (ClipToClientRect)
            {
                //clip to client zone
                CairoHelpers.CairoRectangle(gr, ClientRectangle, CornerRadius);
                gr.Clip();
            }

            if (child != null)
            {
                child.Paint(ref gr);
            }
            gr.Restore();
        }