20 instantiations of new
aspire-tray (20)
NativeSmokeHarness.cs (1)
198_application.RunPanelActionForSmoke(new(PanelActionKind.Stop, _staleHost));
src\Aspire.Tray\Common\TrayPanel.cs (16)
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);
TrayApplication.NativeSmoke.cs (2)
105RunPanelAction(new(PanelActionKind.Settings)); 382RunPanelAction(new(PanelActionKind.Settings));
TrayApplication.Panel.cs (1)
894RunPanelAction(new(PanelActionKind.Settings));
9 references to new
aspire-tray (9)
src\Aspire.Tray\Common\TrayPanel.cs (4)
315var action = Activate(target); 377var action = _pressed is { } pressed && target is { Enabled: true } && target.Key == pressed ? Activate(target) : null; 449var action = Activate(focused); 651private 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)
332private void RunPanelAction(PanelAction action)