37 references to PanelActionKind
aspire-tray (37)
NativeSmokeHarness.cs (1)
198_application.RunPanelActionForSmoke(new(PanelActionKind.Stop, _staleHost));
src\Aspire.Tray\Common\TrayPanel.cs (17)
253/// missing on Start. Confirming returns <see cref="PanelActionKind.RemoveRecent"/>. 442return new(false, new PanelAction(PanelActionKind.Close)); 674return new(PanelActionKind.OpenDashboard, host, target.Bounds) { Recent = recent }; 679return new(PanelActionKind.Stop, host, target.Bounds) { Recent = recent }; 681return new(PanelActionKind.Start, host, target.Bounds) { Recent = recent }; 690return new(PanelActionKind.OpenIn, host, target.Bounds) 697return new(PanelActionKind.ShowInFolder, host, target.Bounds) { Recent = recent }; 700return new(PanelActionKind.CopyPath, host, target.Bounds) { Recent = recent }; 703return new(PanelActionKind.TogglePin, host, target.Bounds) { Recent = recent }; 706return new(PanelActionKind.RemoveRecent, host, target.Bounds) { Recent = true }; 710return new(PanelActionKind.ToggleRecent, Anchor: target.Bounds); 722PanelConfirmKind.ClearRecent => new(PanelActionKind.ClearRecent, Anchor: target.Bounds), 723_ => new(PanelActionKind.RemoveRecent, host, target.Bounds) { Recent = true } 730return new(PanelActionKind.SetLaunchAtSignIn, Anchor: target.Bounds) { Enabled = _settings?.Startup?.Enabled != true }; 732return new(PanelActionKind.Documentation, Anchor: target.Bounds); 734return new(PanelActionKind.Settings, Anchor: target.Bounds); 736return 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)
337case PanelActionKind.OpenDashboard: 341case PanelActionKind.Stop: 344case PanelActionKind.Start: 347case PanelActionKind.OpenIn: 350case PanelActionKind.ShowInFolder: 353case PanelActionKind.CopyPath: 356case PanelActionKind.TogglePin: 359case PanelActionKind.ClearRecent: 362case PanelActionKind.RemoveRecent: 365case PanelActionKind.Documentation: 369case PanelActionKind.Settings: 372case PanelActionKind.SetLaunchAtSignIn: 376case PanelActionKind.Quit: 380case PanelActionKind.Close: 894RunPanelAction(new(PanelActionKind.Settings));