Beispiel #1
0
 public Canvas()
 {
     mCanvasCore = new CanvasCore();
     mCanvasControl = null;
     mSizeMode = @"Normal";
     mDockStyle = @"None";
 }
Beispiel #2
0
 public CanvasControl(CanvasCore nCanvasCore)
 {
     SetStyle(ControlStyles.UserPaint, true);
     SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
     SetStyle(ControlStyles.AllPaintingInWmPaint, true);
     SetStyle(ControlStyles.CacheText, true);
     this.BackColor = Color.White;
     ResizeRedraw = true;
     AllowDrop = true;
     mCanvasCore = nCanvasCore;
 }