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