public void UpdatePosition(ViewLayoutRibbonTabsArea tabsArea, ViewDrawPanel drawMinimizedPanel) { // Move to the newly calculated position Rectangle popupRect = CalculatePopupRect(tabsArea, drawMinimizedPanel); SetBounds(popupRect.X, popupRect.Y, popupRect.Width, popupRect.Height); }