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