基于WebView2实现的Win11桌面框架,利用插件自定义
Moli
2026-05-05 4df6165fa93c7caeea86385312415e312de4d11f
1
2
3
4
5
6
7
8
9
10
11
using Moli.Desktop.Layout;
 
namespace Moli.Desktop.Interop;
 
/// <summary>Places a rendered surface into a desktop-compatible layer.</summary>
public interface IDesktopLayerStrategy
{
    string Name { get; }
    bool IsSupported();
    bool TryAttachDesktopWindow(IntPtr hwnd, RectD bounds, out string? error);
}