csharp #xaf #drawing

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了csharp #xaf #drawing相关的知识,希望对你有一定的参考价值。

public class ViewController1 : ViewController {
    protected override void OnViewControlsCreated() {
        base.OnViewControlsCreated();
        ((System.Windows.Forms.Control)View.Control).Paint += new System.Windows.Forms.PaintEventHandler(ViewController1_Paint);
    }
    void ViewController1_Paint(object sender, System.Windows.Forms.PaintEventArgs e) {
        Pen p = new Pen(Color.Red, 5F);
        e.Graphics.DrawString("Test String", new Font("Arial", 20F), Brushes.Red, new PointF(50, 50));
    }
    protected override void OnDeactivated() {
        base.OnDeactivated();
        ((System.Windows.Forms.Control)View.Control).Paint -= new System.Windows.Forms.PaintEventHandler(ViewController1_Paint);
    }
}


https://www.devexpress.com/Support/Center/Question/Details/Q353740/mdi-graphics-drawing-in-xaf

以上是关于csharp #xaf #drawing的主要内容,如果未能解决你的问题,请参考以下文章

csharp #xaf #controller #ShowCustomStartupNavigationItemController

csharp #xaf #pictureedit #zooming

csharp #xaf #lisview #viewController

csharp FilteringCriterion #xaf

csharp CriteriaController #xaf

csharp filtrowanie po oddzialach #xaf