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"/>.
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);
src\Aspire.Tray\Common\TrayPanelScene.cs (2)
313
internal 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)
105
RunPanelAction(new(
PanelActionKind
.Settings));
382
RunPanelAction(new(
PanelActionKind
.Settings));
TrayApplication.Panel.cs (15)
353
case
PanelActionKind
.OpenDashboard:
357
case
PanelActionKind
.Stop:
360
case
PanelActionKind
.Start:
363
case
PanelActionKind
.OpenIn:
366
case
PanelActionKind
.ShowInFolder:
369
case
PanelActionKind
.CopyPath:
372
case
PanelActionKind
.TogglePin:
375
case
PanelActionKind
.ClearRecent:
378
case
PanelActionKind
.RemoveRecent:
381
case
PanelActionKind
.Documentation:
385
case
PanelActionKind
.Settings:
388
case
PanelActionKind
.SetLaunchAtSignIn:
392
case
PanelActionKind
.Quit:
396
case
PanelActionKind
.Close:
910
RunPanelAction(new(
PanelActionKind
.Settings));