示例#1
0
 /// <summary>
 /// Setup styles
 /// </summary>
 public ItemsPanel(VirtualCanvasControl canvas)
 {
     this.canvas = canvas;
     SetStyle(ControlStyles.AllPaintingInWmPaint |
              ControlStyles.DoubleBuffer |
              ControlStyles.Selectable |
              ControlStyles.UserPaint, true);
 }
示例#2
0
 internal Update(VirtualCanvasControl control)
 {
     this.control = control;
     visibleLeft  = control.VisibleLeft;
     visibleTop   = control.VisibleTop;
     zoomFactor   = control.ZoomFactor;
     size         = control.rootContainer.Size;
 }
示例#3
0
 /// <summary>
 /// Default ctor
 /// </summary>
 /// <param name="canvas"></param>
 internal RootContainer(VirtualCanvasControl canvas)
 {
     this.canvas = canvas;
 }