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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Countly.UI.WebView2" Version="26.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Countly.UI.WebView2" Version="26.1.0" />
                    
Directory.Packages.props
<PackageReference Include="Countly.UI.WebView2" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Countly.UI.WebView2 --version 26.1.0
                    
#r "nuget: Countly.UI.WebView2, 26.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Countly.UI.WebView2@26.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Countly.UI.WebView2&version=26.1.0
                    
Install as a Cake Addin
#tool nuget:?package=Countly.UI.WebView2&version=26.1.0
                    
Install as a Cake Tool

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.
  • Countly core 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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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