How WinUIShell works
mainWinUIShell operates by launching a server process, WinUIShell.Server.exe, which provides all UI functionalities. The PowerShell module communicates with this server via IPC (Inter-Process Communication).
Key Benefits:
- No WinUI 3 DLLs in PowerShell: The module avoids loading heavy WinUI 3 DLLs directly into the PowerShell process.
- Non-blocking UI: You can run long-running code in event handlers without blocking the GUI.
- Thread-safe Property Access: You can access and modify UI element properties directly from any thread without needing to use Dispatchers.