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"/>.
442
return new(false, new PanelAction(
PanelActionKind
.Close));
674
return new(
PanelActionKind
.OpenDashboard, host, target.Bounds) { Recent = recent };
679
return new(
PanelActionKind
.Stop, host, target.Bounds) { Recent = recent };
681
return new(
PanelActionKind
.Start, host, target.Bounds) { Recent = recent };
690
return new(
PanelActionKind
.OpenIn, host, target.Bounds)
697
return new(
PanelActionKind
.ShowInFolder, host, target.Bounds) { Recent = recent };
700
return new(
PanelActionKind
.CopyPath, host, target.Bounds) { Recent = recent };
703
return new(
PanelActionKind
.TogglePin, host, target.Bounds) { Recent = recent };
706
return new(
PanelActionKind
.RemoveRecent, host, target.Bounds) { Recent = true };
710
return new(
PanelActionKind
.ToggleRecent, Anchor: target.Bounds);
722
PanelConfirmKind.ClearRecent => new(
PanelActionKind
.ClearRecent, Anchor: target.Bounds),
723
_ => new(
PanelActionKind
.RemoveRecent, host, target.Bounds) { Recent = true }
730
return new(
PanelActionKind
.SetLaunchAtSignIn, Anchor: target.Bounds) { Enabled = _settings?.Startup?.Enabled != true };
732
return new(
PanelActionKind
.Documentation, Anchor: target.Bounds);
734
return new(
PanelActionKind
.Settings, Anchor: target.Bounds);
736
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)
337
case
PanelActionKind
.OpenDashboard:
341
case
PanelActionKind
.Stop:
344
case
PanelActionKind
.Start:
347
case
PanelActionKind
.OpenIn:
350
case
PanelActionKind
.ShowInFolder:
353
case
PanelActionKind
.CopyPath:
356
case
PanelActionKind
.TogglePin:
359
case
PanelActionKind
.ClearRecent:
362
case
PanelActionKind
.RemoveRecent:
365
case
PanelActionKind
.Documentation:
369
case
PanelActionKind
.Settings:
372
case
PanelActionKind
.SetLaunchAtSignIn:
376
case
PanelActionKind
.Quit:
380
case
PanelActionKind
.Close:
894
RunPanelAction(new(
PanelActionKind
.Settings));