Countly.UI.WebView2
26.1.0
dotnet add package Countly.UI.WebView2 --version 26.1.0
NuGet\Install-Package Countly.UI.WebView2 -Version 26.1.0
<PackageReference Include="Countly.UI.WebView2" Version="26.1.0" />
<PackageVersion Include="Countly.UI.WebView2" Version="26.1.0" />
<PackageReference Include="Countly.UI.WebView2" />
paket add Countly.UI.WebView2 --version 26.1.0
#r "nuget: Countly.UI.WebView2, 26.1.0"
#:package Countly.UI.WebView2@26.1.0
#addin nuget:?package=Countly.UI.WebView2&version=26.1.0
#tool nuget:?package=Countly.UI.WebView2&version=26.1.0
Countly.UI.WebView2
WebView2-based WPF / WinForms UI for the Countly Windows SDK.
It renders Feedback Widgets (Surveys, NPS, Ratings) and the Content feature on the desktop.
It is a thin companion to the core Countly package — the core drives analytics; this package only
displays.
Requirements
- Microsoft Edge WebView2 Evergreen Runtime must be installed on the end-user machine. It ships with recent Windows 10/11 and Microsoft Edge, but is not guaranteed on every machine — distribute the Evergreen Bootstrapper/Standalone installer if you need to guarantee it. The SDK degrades gracefully (no-ops) when the runtime is absent.
Countlycore package (a matching version is a dependency of this package).- .NET Framework 4.6.2+ or .NET 8 (
net462/net8.0-windows), WPF or WinForms.
DPI awareness
For crisp, correctly-placed widgets and content, make the host process per-monitor DPI aware
(an app.manifest dpiAwareness entry is the standard way). The SDK measures and compensates for
DPI at runtime, so it also works on DPI-unaware hosts, but per-monitor awareness is recommended.
Usage
Initialize the core SDK as usual, then:
Feedback widgets
using CountlySDK.UI;
// Fetch available widgets via the core, then present one:
var widgets = await Countly.Instance.Feedback().GetAvailableFeedbackWidgets();
// WPF (call on the UI thread; owner is your Window):
CountlyWebView.PresentFeedbackWidget(this, widgets[0], onClosed: () => { /* dismissed */ });
The card sizes and positions itself where the widget asks (a screen corner by default, or within the
app window if CountlyWebView.ShowWidgetsWithinApp = true).
Content
using CountlySDK.UI;
// Registers the display bridge and starts polling for content (experimental):
CountlyWebView.EnableContentZone();
// ...
CountlyWebView.DisableContentZone();
Content interactions (events, external links, resize, close) are handled automatically; emitted events are recorded through the core and the queue is flushed so the server can react immediately.
License
MIT — see the LICENSE.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
-
.NETFramework 4.6.2
- Countly (>= 26.1.0)
- Microsoft.Web.WebView2 (>= 1.0.2792.45)
-
net8.0-windows7.0
- Countly (>= 26.1.0)
- Microsoft.Web.WebView2 (>= 1.0.2792.45)
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 |
|---|---|---|
| 26.1.0 | 44 | 8/13/2026 |