Exemplo n.º 1
0
        protected override void SetParentControl(FleuxControl parentControl)
        {
            base.SetParentControl(parentControl);

            _controlGraphics = parentControl == null ? null : parentControl.CreateGraphics();
        }
Exemplo n.º 2
0
        protected override void SetParentControl(FleuxControl parentControl)
        {
            base.SetParentControl(parentControl);

            if (parentControl == null) return;

            if (_controlGraphics == null)
                _controlGraphics = parentControl.CreateGraphics();

            Parent.SizeChanged += (s, e) => CreateBuffer();
            CreateBuffer();
        }