8 references to CenterY
aspire-tray (8)
src\Aspire.Tray\Common\TrayPanel.cs (3)
1157void Box(PanelRect bounds, string label) => _guides.Add(new(PanelGuideKind.Box, bounds.CenterY, label, bounds)); 1208var iconY = compact ? banner.CenterY - 8 : banner.Y + 9; 1211? new PanelRect(TextLeft, banner.CenterY - 9, NoticeTextWidth, 18)
src\Aspire.Tray\Common\TrayPanelScene.cs (1)
85public double Baseline => ExplicitBaseline ?? Bounds.CenterY + PanelFonts.CapHeight(Font) / 2;
src\Aspire.Tray\Common\WindowsTrayPanelPlacement.cs (1)
34var y = Math.Clamp(anchor.CenterY - height / 2, top, bottom);
TrayApplication.NativeSmoke.cs (3)
99ApplyPanelResponse(panel.PointerMoved(first.HitBounds.X + 40, first.HitBounds.CenterY)); 232var y = (int)Math.Round(target.HitBounds.CenterY * PanelScale); 446NativeSmokeHarness.Require(panel.Scene.Accessibility.Single(element => element.Key.Label == "header.status").Bounds.CenterY == TrayPanel.HeaderHeight / 2