ComponentFactory.Krypton.Ribbon.ViewDrawRibbonGroup.OnCollapsedClick C# (CSharp) Method

OnCollapsedClick() private method

private OnCollapsedClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void OnCollapsedClick(object sender, MouseEventArgs e)
        {
            // We do not operate the collapsed button at design time
            if (!_ribbon.InDesignMode)
            {
                // We are pressed until the popup window is removed
                _pressed = true;
                _container.Refresh();

                // Create the popup window for the group
                _popupGroup = new VisualPopupGroup(_ribbon, _ribbonGroup, _ribbon.Renderer);

                // We need to know when disposed so the pressed state can be reversed
                _popupGroup.Disposed += new EventHandler(OnVisualPopupGroupDisposed);

                // Ask the popup to show itself relative to ourself
                _popupGroup.ShowCalculatingSize(this, _container.RectangleToScreen(ClientRectangle));
            }
        }