11 instantiations of StrokePathCommand
Aspire.Tray.Tests (11)
src\Aspire.Tray\Common\TrayPanel.cs (7)
896commands.Add(new StrokePathCommand(PanelPath.RoundedRect(panel.Inset(0.5, 0.5), CornerRadius - 0.5), palette.Border, 1)); 912commands.Add(new StrokePathCommand(PanelPath.RoundedRect(focused.Bounds.Inset(-1, -1), 7), palette.Focus, 2)); 949commands.Add(new StrokePathCommand(PanelPath.RoundedRect(banner.Inset(0.5, 0.5), 5.5), palette.Border, 1)); 1145commands.Add(new StrokePathCommand(PanelPath.RoundedRect(card.Inset(0.5, 0.5), 7.5), palette.Border, 1)); 1217commands.Add(new StrokePathCommand(PanelPath.RoundedRect(card.Inset(0.5, 0.5), 7.5), palette.Border, 1)); 1247commands.Add(new StrokePathCommand(PanelPath.RoundedRect(cancelBounds.Inset(0.5, 0.5), 5.5), palette.Border, 1)); 1260commands.Add(new StrokePathCommand(PanelPath.RoundedRect(acceptBounds.Inset(0.5, 0.5), 5.5), palette.Border, 1));
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (4)
94=> commands.Add(new StrokePathCommand(path.Transform(scale, bounds.X, bounds.Y), color, width * scale)); 196=> commands.Add(new StrokePathCommand(path.Transform(scale, bounds.X, bounds.Y), color, width * scale)); 215commands.Add(new StrokePathCommand(PanelPath.RoundedRect(track.Inset(0.5, 0.5), 8.5).Transform(scale, bounds.X, bounds.Y), 222commands.Add(new StrokePathCommand(PanelPath.Circle(9, 9, 6.5).Transform(scale, bounds.X, bounds.Y),
6 references to StrokePathCommand
Aspire.Tray.Tests (6)
Helpers\TrayPanelSvgRenderer.cs (2)
55case StrokePathCommand stroke: 70StrokePathCommand stroke => new XElement(s_svg + "path", new XAttribute("d", ToPathData(stroke.Path)), new XAttribute("fill", "none"),
TrayPanelTests.cs (4)
384Assert.Contains(panel.Scene.Commands.OfType<StrokePathCommand>(), stroke => stroke.Color == TrayPanelPalette.Light.Focus); 515Assert.Contains(panel.Scene.Commands.OfType<StrokePathCommand>(), stroke => stroke.Color == TrayPanelPalette.Light.Focus); 1104StrokePathCommand stroke => stroke.Color, 1377StrokePathCommand stroke => (stroke.Path, stroke.Width),