/// <summary>
        /// Called when the control's client rectangle is changed.
        /// </summary>
        protected virtual void OnClientRectangleUpdated()
        {
            if (!IsChangingSize && Initialized && DrawMode == ControlDrawMode.UNIQUE_RENDER_TARGET)
            {
                CreateRenderTarget();
            }

            ClientRectangleUpdated?.Invoke(this, EventArgs.Empty);
        }
示例#2
0
 /// <summary>
 /// Called when the control's client rectangle is changed.
 /// </summary>
 protected virtual void OnClientRectangleUpdated()
 {
     ClientRectangleUpdated?.Invoke(this, EventArgs.Empty);
 }