37 references to PanelActionKind
aspire-tray (37)
NativeSmokeHarness.cs (1)
199_application.RunPanelActionForSmoke(new(PanelActionKind.Stop, _staleHost));
src\Aspire.Tray\Common\TrayPanel.cs (17)
258/// missing on Start. Confirming returns <see cref="PanelActionKind.RemoveRecent"/>. 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);
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
313internal sealed record PanelAction(PanelActionKind Kind, AppHostMenuItem? Host = null, PanelRect Anchor = default) 321/// <summary>For <see cref="PanelActionKind.OpenIn"/>: the title of the application to open the folder in.</summary>
TrayApplication.NativeSmoke.cs (2)
105RunPanelAction(new(PanelActionKind.Settings)); 382RunPanelAction(new(PanelActionKind.Settings));
TrayApplication.Panel.cs (15)
353case PanelActionKind.OpenDashboard: 357case PanelActionKind.Stop: 360case PanelActionKind.Start: 363case PanelActionKind.OpenIn: 366case PanelActionKind.ShowInFolder: 369case PanelActionKind.CopyPath: 372case PanelActionKind.TogglePin: 375case PanelActionKind.ClearRecent: 378case PanelActionKind.RemoveRecent: 381case PanelActionKind.Documentation: 385case PanelActionKind.Settings: 388case PanelActionKind.SetLaunchAtSignIn: 392case PanelActionKind.Quit: 396case PanelActionKind.Close: 910RunPanelAction(new(PanelActionKind.Settings));