ComponentFactory.Krypton.Ribbon.QATExtraButtonController.UpdateTargetState C# (CSharp) Method

UpdateTargetState() protected method

Set the correct visual state of the target.
protected UpdateTargetState ( ) : void
return void
        protected override void UpdateTargetState()
        {
            if (_hasFocus && !IsFixed)
            {
                if (Target.ElementState != PaletteState.Tracking)
                {
                    // Update target to reflect new state
                    Target.ElementState = PaletteState.Tracking;

                    // Redraw to show the change in visual state
                    OnNeedPaint(false, Target.ClientRectangle);
                }
            }
            else
                base.UpdateTargetState();
        }