25 references to TextLeft
Aspire.Tray.Tests (25)
src\Aspire.Tray\Common\TrayPanel.cs (19)
65public const double NestedTextLeft = TextLeft + 26; 1057(RowInset, "row/card edge"), (EdgeMargin, "edge"), (LeadingCenter, "leading center"), (TextLeft, "text"), (NestedTextLeft, "nested text"), 1072_guides.Add(new(PanelGuideKind.Baseline, HeaderBaseline, "header baseline", new(TextLeft, 0, Width - TextLeft, HeaderHeight))); 1128? new(TextLeft, middle - 8, 16, 16) 1160private const double NoticeTextWidth = Width - EdgeMargin - TextLeft; 1178var title = new PanelRect(TextLeft, middle - 10, HeaderTitleWidth, 20); 1211? new PanelRect(TextLeft, banner.CenterY - 9, NoticeTextWidth, 18) 1212: new PanelRect(TextLeft, banner.Y + 8, NoticeTextWidth, height - 16); 1306commands.Add(new TextCommand(new(TextLeft, top + 8, textRight - TextLeft, 18), host.DisplayName, PanelFontRole.Name, palette.TextPrimary)); 1307commands.Add(new TextCommand(new(TextLeft, top + 27, textRight - TextLeft, 16), detail, PanelFontRole.Body, 1419TrayPanelGlyphs.AddIcon(fallback, PanelIcon.AppWindow, new(TextLeft, item.Y + 7, 16, 16), iconColor); 1420commands.Add(new AppIconCommand(new(TextLeft, item.Y + 7, 16, 16), _openInApplications[index], fallback)); 1436commands.Add(new TextCommand(new(TextLeft, item.Y, labelRight - TextLeft, item.Height), label, PanelFontRole.Body, palette.TextPrimary)); 1535var title = new PanelRect(TextLeft, (HeaderHeight - 20) / 2, Width - EdgeMargin - TextLeft, 20);
TrayPanelTests.cs (6)
141Assert.Equal(TrayPanel.Width - TrayPanel.EdgeMargin - TrayPanel.TextLeft, nameText.Bounds.Width); 142Assert.Equal(TrayPanel.Width - TrayPanel.EdgeMargin - TrayPanel.TextLeft, detailText.Bounds.Width); 155Assert.Equal(TrayPanel.Width - TrayPanel.EdgeMargin - TrayPanel.TextLeft, nameText.Bounds.Width); 967double[] columns = [TrayPanel.EdgeMargin, TrayPanel.TextLeft, TrayPanel.NestedTextLeft]; 1019Assert.Equal(TrayPanel.TextLeft, box.Bounds.X); 1057Assert.Equal(TrayPanel.TextLeft, title.Bounds.X);