formaui-net.Framework.Themes.WebView2
1.0.0-preview.27
Prefix Reserved
dotnet add package formaui-net.Framework.Themes.WebView2 --version 1.0.0-preview.27
NuGet\Install-Package formaui-net.Framework.Themes.WebView2 -Version 1.0.0-preview.27
<PackageReference Include="formaui-net.Framework.Themes.WebView2" Version="1.0.0-preview.27" />
<PackageVersion Include="formaui-net.Framework.Themes.WebView2" Version="1.0.0-preview.27" />
<PackageReference Include="formaui-net.Framework.Themes.WebView2" />
paket add formaui-net.Framework.Themes.WebView2 --version 1.0.0-preview.27
#r "nuget: formaui-net.Framework.Themes.WebView2, 1.0.0-preview.27"
#:package formaui-net.Framework.Themes.WebView2@1.0.0-preview.27
#addin nuget:?package=formaui-net.Framework.Themes.WebView2&version=1.0.0-preview.27&prerelease
#tool nuget:?package=formaui-net.Framework.Themes.WebView2&version=1.0.0-preview.27&prerelease
Forma.Framework.Themes.WebView2
The application's theme choice in a WebView2, the web view of WPF and Windows Forms, attached through
Attach(CoreWebView2) to the initialized control the host supplies. Every document a WebView2 creates draws the choice
in force from its first paint, before the host page's own content, and the document it shows follows each choice the
application accepts, as
Forma.Framework.Themes.WebView
sets out.
Install
dotnet add package formaui-net.Framework.Themes.WebView2 --prerelease
It brings formaui-net.Framework.Themes.WebView, which AddFormaWebViewIntegration() registers.
Use it
Each web view attaches as it initializes, before its first navigation, in the handler of its BlazorWebViewInitialized
event, the same for WPF's BlazorWebView and Windows Forms':
using Forma.Framework.Themes.WebView;
using Forma.Framework.Themes.WebView2;
webView.BlazorWebViewInitialized += (_, e) => services.GetRequiredService<WebViewThemes>().Attach(e.WebView.CoreWebView2);
The handler is added before the web view starts, as the native window that holds it is created. The host page links each registered theme's stylesheet, as the host page sets out.
License
Apache License 2.0, under the repository's LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net11.0-windows7.0 is compatible. |
-
net11.0-windows7.0
- formaui-net.Framework.Themes.WebView (= 1.0.0-preview.27)
- Microsoft.Web.WebView2 (>= 1.0.4258.31)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0-preview.27 | 39 | 12/3/2026 |
| 1.0.0-preview.26 | 46 | 12/3/2026 |
| 1.0.0-preview.25 | 45 | 12/2/2026 |
| 1.0.0-preview.24 | 48 | 12/1/2026 |
| 1.0.0-preview.23 | 63 | 11/30/2026 |
| 1.0.0-preview.22 | 61 | 11/30/2026 |
| 1.0.0-preview.21 | 63 | 11/29/2026 |
What this release changed is in Forma's changelog: https://github.com/FormaUI/Forma/blob/v1.0.0-preview.27/CHANGELOG.md