CmdPal: Remove ShellViewModel's dependency on MainListPage (#40482)

targets #40479

Kinda mental that the viewmodel had this hard dependency.

So instead I added a service for providing the root page for the app.
Theoretically, you could add a different `IRootPageService`, and give
out
a different root page.


ref #40113
This commit is contained in:
Mike Griese
2025-07-11 06:29:39 -05:00
committed by GitHub
parent 9a65c36859
commit b55c4eeed3
5 changed files with 137 additions and 36 deletions

View File

@@ -144,6 +144,7 @@ public partial class App : Application
services.AddSingleton<IExtensionService, ExtensionService>();
services.AddSingleton<TrayIconService>();
services.AddSingleton<IRootPageService, PowerToysRootPageService>();
services.AddSingleton(new TelemetryForwarder());
// ViewModels