LicenseManagement.EndUser.Avalonia 1.0.2

There is a newer version of this package available.
See the version list below for details.
dotnet add package LicenseManagement.EndUser.Avalonia --version 1.0.2
                    
NuGet\Install-Package LicenseManagement.EndUser.Avalonia -Version 1.0.2
                    
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="LicenseManagement.EndUser.Avalonia" Version="1.0.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LicenseManagement.EndUser.Avalonia" Version="1.0.2" />
                    
Directory.Packages.props
<PackageReference Include="LicenseManagement.EndUser.Avalonia" />
                    
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 LicenseManagement.EndUser.Avalonia --version 1.0.2
                    
#r "nuget: LicenseManagement.EndUser.Avalonia, 1.0.2"
                    
#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 LicenseManagement.EndUser.Avalonia@1.0.2
                    
#: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=LicenseManagement.EndUser.Avalonia&version=1.0.2
                    
Install as a Cake Addin
#tool nuget:?package=LicenseManagement.EndUser.Avalonia&version=1.0.2
                    
Install as a Cake Tool

LicenseManagement.EndUser.Avalonia

Build and Test NuGet NuGet Downloads License: MIT

Avalonia UI components for license-management.com end-user SDK. Provides ready-to-use Window and UserControl components, view models, and converters for license registration and management workflows.

Account Required: This library requires a publisher account at license-management.com.

Free with Dev Subscription: A developer subscription is available at no cost, which provides full access to all features for development and testing purposes.

Features

  • Cross-platform: Works on Windows, macOS, and Linux
  • Modern UI: Clean, modern design with Fluent theme
  • Embeddable: Use LicenseControl UserControl in your existing app
  • Standalone: Use LicenseWindow for a complete license management window
  • Full functionality: Register, unregister, and renew licenses

Installation

dotnet add package LicenseManagement.EndUser.Avalonia

Quick Start

Option 1: Standalone Window

Show a license management window from anywhere in your app:

using LicenseManagement.EndUser.Avalonia.Views;

// Create and show the license window
var licenseWindow = LicenseWindow.Create(
    vendorId: "VND_01ABCDEF...",
    productId: "PRD_01ABCDEF...",
    apiKey: "your-api-key",
    publicKey: "<RSAKeyValue>...</RSAKeyValue>",
    validDays: 30
);

await licenseWindow.ShowDialog(parentWindow);

Option 2: Embeddable Control

Add the license control directly to your AXAML:

<Window xmlns="https://github.com/avaloniaui"
        xmlns:license="clr-namespace:LicenseManagement.EndUser.Avalonia.Views;assembly=LicenseManagement.EndUser.Avalonia">

    <license:LicenseControl x:Name="LicenseControl" />

</Window>

Initialize in code-behind:

public partial class MainWindow : Window
{
    public MainWindow()
    {
        InitializeComponent();

        LicenseControl.Initialize(
            vendorId: "VND_01ABCDEF...",
            productId: "PRD_01ABCDEF...",
            apiKey: "your-api-key",
            publicKey: "<RSAKeyValue>...</RSAKeyValue>",
            validDays: 30
        );
    }
}

License Status Handling

Check the license status to enable/disable features:

using LicenseManagement.EndUser.License;

var license = LicenseControl.License;

switch (license?.Status)
{
    case LicenseStatusTitles.Valid:
        // Full access - license is valid and paid
        EnableAllFeatures();
        break;

    case LicenseStatusTitles.ValidTrial:
        // Trial mode - show limited features or trial banner
        EnableTrialFeatures();
        ShowTrialBanner(license.TrialExpires);
        break;

    case LicenseStatusTitles.InvalidTrial:
    case LicenseStatusTitles.Expired:
    case LicenseStatusTitles.ReceiptExpired:
    case LicenseStatusTitles.ReceiptUnregistered:
        // No valid license - prompt user to register
        DisableFeatures();
        ShowRegistrationPrompt();
        break;
}

Trial period length is controlled by the server and embedded in the license file as TrialEndDate. If a trial is extended in the dashboard, the updated TrialEndDate will appear after the client refreshes the license file.

Requirements

  • .NET 8.0 or later
  • Avalonia 11.2+

Sample Application

See the samples/AvaloniaSampleApp directory for a complete working example.

Documentation

For complete API documentation, visit license-management.com/docs.

License

MIT License - see LICENSE file for details.

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. 
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
3.2.0 108 10/15/2026
3.1.0 133 8/26/2026
2.1.2 232 6/25/2026
2.1.1 145 5/15/2026
2.1.0 129 5/15/2026
2.0.0 130 5/15/2026
1.0.2 157 2/5/2026
1.0.0 329 12/18/2025