ComponentFactory.Krypton.Ribbon.ViewDrawRibbonCaptionArea.RedrawCustomChrome C# (CSharp) Method

RedrawCustomChrome() public method

Causes the custom chrome to be repainted.
public RedrawCustomChrome ( bool layout ) : void
layout bool Is a layout required.
return void
        public void RedrawCustomChrome(bool layout)
        {
            if (UsingCustomChrome)
                _kryptonForm.PerformNeedPaint(layout);
        }

Usage Example

コード例 #1
0
        private void OnRedrawTick(object sender, EventArgs e)
        {
            _invalidateTimer.Stop();

            if ((_captionArea?.KryptonForm != null) && _captionArea.UsingCustomChrome)
            {
                if (_captionArea.KryptonForm.PaintCount == _paintCount)
                {
                    _captionArea.RedrawCustomChrome(true);
                }
            }
        }