基于WebView2实现的Win11桌面框架,利用插件自定义
chunhualin1
2026-08-17 9b5711d3124622b1f1b18500d442c76492da877a
src/Moli.Desktop/Host/DesktopHostBuilder.cs
@@ -54,6 +54,10 @@
                services.AddSingleton<ILayoutManager, LayoutManager>();
                services.AddSingleton<IDesktopLayerStrategy, WorkerWDesktopLayerStrategy>();
                services.AddSingleton<IDesktopLayerStrategy, BottomDesktopLayerStrategy>();
                services.AddSingleton<DisplayChangeMonitor>();
                services.AddSingleton<INativeHotkeyApi, Win32HotkeyApi>();
                services.AddSingleton<IHotkeyMessageWindow, WpfHotkeyMessageWindow>();
                services.AddSingleton<IHotkeyService, HotkeyService>();
                services.AddSingleton<IWin32InteropService, Win32InteropService>();
                services.AddSingleton<PluginBridgeDispatcher>();
                services.AddSingleton<IWebViewHostFactory, WebViewHostFactory>();