20 instantiations of new
aspire-tray (20)
NativeSmokeHarness.cs (1)
198
_application.RunPanelActionForSmoke(
new
(PanelActionKind.Stop, _staleHost));
src\Aspire.Tray\Common\TrayPanel.cs (16)
442
return new(false, new
PanelAction
(PanelActionKind.Close));
674
return
new
(PanelActionKind.OpenDashboard, host, target.Bounds) { Recent = recent };
679
return
new
(PanelActionKind.Stop, host, target.Bounds) { Recent = recent };
681
return
new
(PanelActionKind.Start, host, target.Bounds) { Recent = recent };
690
return
new
(PanelActionKind.OpenIn, host, target.Bounds)
697
return
new
(PanelActionKind.ShowInFolder, host, target.Bounds) { Recent = recent };
700
return
new
(PanelActionKind.CopyPath, host, target.Bounds) { Recent = recent };
703
return
new
(PanelActionKind.TogglePin, host, target.Bounds) { Recent = recent };
706
return
new
(PanelActionKind.RemoveRecent, host, target.Bounds) { Recent = true };
710
return
new
(PanelActionKind.ToggleRecent, Anchor: target.Bounds);
722
PanelConfirmKind.ClearRecent =>
new
(PanelActionKind.ClearRecent, Anchor: target.Bounds),
723
_ =>
new
(PanelActionKind.RemoveRecent, host, target.Bounds) { Recent = true }
730
return
new
(PanelActionKind.SetLaunchAtSignIn, Anchor: target.Bounds) { Enabled = _settings?.Startup?.Enabled != true };
732
return
new
(PanelActionKind.Documentation, Anchor: target.Bounds);
734
return
new
(PanelActionKind.Settings, Anchor: target.Bounds);
736
return
new
(PanelActionKind.Quit, Anchor: target.Bounds);
TrayApplication.NativeSmoke.cs (2)
105
RunPanelAction(
new
(PanelActionKind.Settings));
382
RunPanelAction(
new
(PanelActionKind.Settings));
TrayApplication.Panel.cs (1)
894
RunPanelAction(
new
(PanelActionKind.Settings));
9 references to new
aspire-tray (9)
src\Aspire.Tray\Common\TrayPanel.cs (4)
315
var
action = Activate(target);
377
var
action = _pressed is { } pressed && target is { Enabled: true } && target.Key == pressed ? Activate(target) : null;
449
var
action = Activate(focused);
651
private
PanelAction
? Activate(PanelHitTarget target)
src\Aspire.Tray\Common\TrayPanelScene.cs (3)
279
/// Open the AppHost's folder in <see cref="
PanelAction
.Application"/>, one of
303
/// <summary>Turn launch at sign-in on or off, per <see cref="
PanelAction
.Enabled"/>.</summary>
326
internal readonly record struct PanelResponse(bool Redraw,
PanelAction
? Action = null)
TrayApplication.NativeSmoke.cs (1)
296
internal void RunPanelActionForSmoke(
PanelAction
action)
TrayApplication.Panel.cs (1)
332
private void RunPanelAction(
PanelAction
action)