ComponentFactory.Krypton.Toolkit.CheckBoxController.MouseLeave C# (CSharp) Method

MouseLeave() public method

Mouse has left the view.
public MouseLeave ( Control c, ViewBase next ) : void
c System.Windows.Forms.Control Reference to the source control instance.
next ViewBase Reference to view that is next to have the mouse.
return void
        public virtual void MouseLeave(Control c, ViewBase next)
        {
            // Only if mouse is leaving all the children monitored by controller.
            if (!_target.ContainsRecurse(next))
            {
                if (Enabled)
                {
                    // Mouse is no longer over the target
                    _target.Tracking = false;
                }

                // If leaving the view then cannot be capturing mouse input anymore
                _captured = false;
                PerformNeedPaint();
            }
        }