Microsoft.Windows.Controls.Ribbon.RibbonMenuButton.ResizePopupInternal C# (CSharp) Метод

ResizePopupInternal() приватный Метод

Called from UIA Peers.
private ResizePopupInternal ( double newWidth, double newHeight ) : bool
newWidth double
newHeight double
Результат bool
        internal bool ResizePopupInternal(double newWidth, double newHeight)
        {
            if (double.IsNaN(_itemsPresenter.Width) || double.IsNaN(_itemsPresenter.Height))
            {
                RibbonDropDownHelper.OnPopupResizeStarted(_itemsPresenter);
            }

            double horizontalDelta = newWidth - _itemsPresenter.Width;
            double verticalDelta = newHeight - _itemsPresenter.Height;

            return RibbonDropDownHelper.ResizePopup(_itemsPresenter,
                RibbonDropDownHelper.GetMinDropDownSize(_itemsHost, _popup, BorderThickness),
                CanUserResizeHorizontally,
                CanUserResizeVertically,
                /* IsDropDownPositionedLeft */ false,
                IsDropDownPositionedAbove,
                _screenBounds,
                _popupRoot,
                horizontalDelta,
                verticalDelta);
        }