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