19 references to Right
aspire-tray (19)
src\Aspire.Tray\Common\TrayPanel.cs (5)
1082commands.Add(new FillPathCommand(PanelPath.Circle(title.Right + 4, statusMiddle, 4), dot)); 1083var statusLeft = title.Right + 14; 1308commands.Add(new TextCommand(new(NestedTextLeft, item.Y, item.Right - 8 - NestedTextLeft, item.Height), label, 1315var labelRight = item.Right - 8; 1386var acceptBounds = new PanelRect(card.Right - 10 - ButtonWidth, controlsY, ButtonWidth, ButtonSize);
src\Aspire.Tray\Common\TrayPanelGeometry.cs (13)
18public bool Contains(double x, double y) => x >= X && x < Right && y >= Y && y < Bottom; 20public bool Contains(PanelRect other) => other.X >= X && other.Y >= Y && other.Right <= Right && other.Bottom <= Bottom; 22public bool IntersectsWith(PanelRect other) => other.X < Right && X < other.Right && other.Y < Bottom && Y < other.Bottom; 32var right = Math.Min(Right, other.Right); 134=> new PanelPath().MoveTo(rect.X, rect.Y).LineTo(rect.Right, rect.Y).LineTo(rect.Right, rect.Bottom) 148var path = new PanelPath().MoveTo(rect.X + topLeft, rect.Y).LineTo(rect.Right - topRight, rect.Y); 151path.Arc(rect.Right - topRight, rect.Y + topRight, topRight, -90, 90, connect: true); 153path.LineTo(rect.Right, rect.Bottom - bottomRight); 156path.Arc(rect.Right - bottomRight, rect.Bottom - bottomRight, bottomRight, 0, 90, connect: true);
TrayApplication.Panel.cs (1)
830Right = (int)Math.Round(rect.Right * scale),