//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);
        }
Exemple #2
0
        protected override void OnDraw(Xwt.Drawing.Context ctx, Rectangle dirtyRect)
        {
            base.OnDraw(ctx, dirtyRect);

            var p = new ReferencePainter();

            p.All(ctx);
        }