7 types derived from PanelCommand
Aspire.Tray.Tests (7)
src\Aspire.Tray\Common\TrayPanelScene.cs (7)
53
internal sealed record FillPathCommand(PanelPath Path, PanelColor Color) :
PanelCommand
;
56
internal sealed record StrokePathCommand(PanelPath Path, PanelColor Color, double Width) :
PanelCommand
;
70
PanelTruncation Truncation = PanelTruncation.End) :
PanelCommand
;
73
internal sealed record LogoCommand(PanelRect Bounds) :
PanelCommand
;
80
internal sealed record AppIconCommand(PanelRect Bounds, string Application, IReadOnlyList<PanelCommand> Fallback) :
PanelCommand
;
83
internal sealed record PushClipCommand(PanelRect Bounds) :
PanelCommand
;
85
internal sealed record PopClipCommand :
PanelCommand
;
28 references to PanelCommand
Aspire.Tray.Tests (28)
Helpers\TrayPanelSvgRenderer.cs (2)
48
foreach (
var
command in scene.Commands)
65
foreach (
var
shape in appIcon.Fallback)
src\Aspire.Tray\Common\TrayPanel.cs (15)
725
var commands = new List<
PanelCommand
>();
845
var hidden = new List<
PanelCommand
>();
927
private void AddHeader(List<
PanelCommand
> commands, TrayViewState state, TrayPanelPalette palette)
942
private void AddNotice(List<
PanelCommand
> commands, string notice, bool singleLine, double height, TrayPanelPalette palette)
958
private void AddEmptyState(List<
PanelCommand
> commands, DiscoveryState discovery, double top, TrayPanelPalette palette)
984
private void AddSectionHeader(List<
PanelCommand
> commands, List<PanelHitTarget> targets, PanelSection section, double top,
1022
private void AddRow(List<
PanelCommand
> commands, List<PanelHitTarget> targets, AppHostMenuItem host, PanelSection section,
1140
private void AddActions(List<
PanelCommand
> commands, List<PanelHitTarget> targets, AppHostMenuItem host, PanelSection section,
1157
var fallback = new List<
PanelCommand
>();
1212
private void AddConfirm(List<
PanelCommand
> commands, List<PanelHitTarget> targets, PanelConfirm confirm, AppHostMenuItem? host,
1266
private void AddSettingsHeader(List<
PanelCommand
> commands, List<PanelHitTarget> targets, TrayPanelPalette palette)
1278
private void AddSettingsToggle(List<
PanelCommand
> commands, List<PanelHitTarget> targets, PanelTargetKind kind, PanelSettings settings,
1305
private void AddAbout(List<
PanelCommand
> commands, PanelSettings settings, double top, TrayPanelPalette palette)
1324
private void AddFooter(List<
PanelCommand
> commands, List<PanelHitTarget> targets, PanelRect footer, TrayPanelPalette palette)
1352
private void AddInteractionFill(List<
PanelCommand
> commands, PanelTargetKey key, PanelRect bounds, TrayPanelPalette palette, bool includeFocus)
src\Aspire.Tray\Common\TrayPanelGlyphs.cs (3)
52
public static void AddStatus(List<
PanelCommand
> commands, PanelStatusGlyph glyph, PanelRect bounds, TrayPanelPalette palette)
97
public static void AddIcon(List<
PanelCommand
> commands, PanelIcon icon, PanelRect bounds, PanelColor color)
204
public static void AddToggle(List<
PanelCommand
> commands, bool on, bool enabled, PanelRect bounds, TrayPanelPalette palette)
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
80
internal sealed record AppIconCommand(PanelRect Bounds, string Application, IReadOnlyList<
PanelCommand
> Fallback) : PanelCommand;
222
IReadOnlyList<
PanelCommand
> Commands,
TrayPanelTests.cs (6)
761
var commands = new List<
PanelCommand
>();
967
var commands = new List<
PanelCommand
>();
996
var commands = new List<
PanelCommand
>();
1053
var commands = new List<
PanelCommand
>();
1098
var commands = new List<
PanelCommand
>();
1372
private static PanelRect GetBounds(
PanelCommand
command)