private void CalculatePopupRect() { var sPopupSize = _current.Size; var sOffset = _current.BorderOffset; var rc = new Rectangle(); var tl = TaskbarLocation.Detect(); rc = GetTaskbarPopupLocation(tl, sPopupSize, sOffset); _current.Location = rc; _edge = tl.Edge; var pt = new Point( rc.Left + rc.Width / 2, rc.Top + rc.Height / 2 ); _popupScreen = Screen.FromPoint(pt); }
private TaskbarLocation(Rectangle taskbar, Rectangle workArea, TaskbarLocationEdge edge) { Taskbar = taskbar; WorkArea = workArea; Edge = edge; }