ComponentFactory.Krypton.Ribbon.VisualPopupQATOverflow.ShowCalculatingSize C# (CSharp) Method

ShowCalculatingSize() public method

Show the quick access toolbar popup relative to the parent area.
public ShowCalculatingSize ( Rectangle parentScreenRect, EventHandler finishDelegate ) : void
parentScreenRect System.Drawing.Rectangle Screen rectangle of the parent.
finishDelegate EventHandler Delegate fired when popup dismissed.
return void
        public void ShowCalculatingSize(Rectangle parentScreenRect,
                                        EventHandler finishDelegate)
        {
            Size popupSize;

            // Find the size the quick access toolbar requests to be
            using (ViewLayoutContext context = new ViewLayoutContext(this, Renderer))
                popupSize = _viewQAT.GetPreferredSize(context);

            DismissedDelegate = finishDelegate;

            // Request we be shown below the parent screen rect
            Show(parentScreenRect, popupSize);
        }