20 instantiations of PanelAction
aspire-tray (20)
NativeSmokeHarness.cs (1)
199
_application.RunPanelActionForSmoke(
new
(PanelActionKind.Stop, _staleHost));
src\Aspire.Tray\Common\TrayPanel.cs (16)
525
return new(false, new
PanelAction
(PanelActionKind.Close));
757
return
new
(PanelActionKind.OpenDashboard, host, target.Bounds) { Recent = recent };
762
return
new
(PanelActionKind.Stop, host, target.Bounds) { Recent = recent };
764
return
new
(PanelActionKind.Start, host, target.Bounds) { Recent = recent };
773
return
new
(PanelActionKind.OpenIn, host, target.Bounds)
780
return
new
(PanelActionKind.ShowInFolder, host, target.Bounds) { Recent = recent };
783
return
new
(PanelActionKind.CopyPath, host, target.Bounds) { Recent = recent };
786
return
new
(PanelActionKind.TogglePin, host, target.Bounds) { Recent = recent };
789
return
new
(PanelActionKind.RemoveRecent, host, target.Bounds) { Recent = true };
793
return
new
(PanelActionKind.ToggleRecent, Anchor: target.Bounds);
805
PanelConfirmKind.ClearRecent =>
new
(PanelActionKind.ClearRecent, Anchor: target.Bounds),
806
_ =>
new
(PanelActionKind.RemoveRecent, host, target.Bounds) { Recent = true }
813
return
new
(PanelActionKind.SetLaunchAtSignIn, Anchor: target.Bounds) { Enabled = _settings?.Startup?.Enabled != true };
815
return
new
(PanelActionKind.Documentation, Anchor: target.Bounds);
817
return
new
(PanelActionKind.Settings, Anchor: target.Bounds);
819
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)
910
RunPanelAction(
new
(PanelActionKind.Settings));
9 references to PanelAction
aspire-tray (9)
src\Aspire.Tray\Common\TrayPanel.cs (4)
321
var
action = Activate(target);
417
var
action = !wasDraggingScrollbar && _pressed is { } pressed && target is { Enabled: true } && target.Key == pressed
532
var
action = Activate(focused);
734
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)
348
private void RunPanelAction(
PanelAction
action)