11 references to LeadingCenter
Aspire.Tray.Tests (11)
src\Aspire.Tray\Common\TrayPanel.cs (7)
66public const double TrailingCenter = Width - LeadingCenter; 1057(RowInset, "row/card edge"), (EdgeMargin, "edge"), (LeadingCenter, "leading center"), (TextLeft, "text"), (NestedTextLeft, "nested text"), 1070Box(new(LeadingCenter - 8, HeaderHeight + 8 + 9, 16, 16), "notice icon"); 1079Box(new(LeadingCenter - 8, HeaderHeight / 2 - 8, 16, 16), "back"); 1129: new(LeadingCenter - 8, middle - 8, 16, 16), 1209TrayPanelGlyphs.AddIcon(commands, PanelIcon.Alert, new(LeadingCenter - 8, iconY, 16, 16), palette.BannerText); 1530var back = new PanelRect(LeadingCenter - ButtonSize / 2, (HeaderHeight - ButtonSize) / 2, ButtonSize, ButtonSize);
TrayPanelTests.cs (4)
1000Assert.Equal(TrayPanel.LeadingCenter, button.Bounds.CenterX); 1023Assert.Equal(TrayPanel.LeadingCenter, box.Bounds.CenterX); 1040Assert.All(scene.Guides.Where(guide => guide.Label == "action icon"), guide => Assert.Equal(TrayPanel.LeadingCenter, guide.Bounds.CenterX)); 1056Assert.Equal(TrayPanel.LeadingCenter, logo.Bounds.CenterX);