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