//Action<Context> icon = c => iconMethod.Invoke(font, new object[] { c });
        //var ix = Expression.Constant(font);
        //var ic = Expression.Parameter(typeof(Context), "it");
        //icon = Expression.Lambda<Action<Context>>(
        //    Expression.Call(ix, iconMethod,ic), ic).Compile();

        protected virtual void XwtSample(Xwt.Drawing.Context ctx)
        {
            var p = new ReferencePainter();

            p.Font   = Toolkit.CreateFrontend <Font>(this.Font);
            p.Bounds = this.Bounds.ToXwt();
            p.All(ctx);
        }