Hymma.Lm.EndUser.Wpf 1.3.5

Prefix Reserved
Suggested Alternatives

LicenseManagement.EndUser.Wpf

Additional Details

Use LicenseManagement.EndUser.Wpf instead.

Requires NuGet 2.5 or higher.

dotnet add package Hymma.Lm.EndUser.Wpf --version 1.3.5
                    
NuGet\Install-Package Hymma.Lm.EndUser.Wpf -Version 1.3.5
                    
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="Hymma.Lm.EndUser.Wpf" Version="1.3.5" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Hymma.Lm.EndUser.Wpf" Version="1.3.5" />
                    
Directory.Packages.props
<PackageReference Include="Hymma.Lm.EndUser.Wpf" />
                    
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 Hymma.Lm.EndUser.Wpf --version 1.3.5
                    
#r "nuget: Hymma.Lm.EndUser.Wpf, 1.3.5"
                    
#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 Hymma.Lm.EndUser.Wpf@1.3.5
                    
#: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=Hymma.Lm.EndUser.Wpf&version=1.3.5
                    
Install as a Cake Addin
#tool nuget:?package=Hymma.Lm.EndUser.Wpf&version=1.3.5
                    
Install as a Cake Tool

LicenseManagement.EndUser.Wpf

Build and Test NuGet NuGet Downloads License: MIT

WPF UI components for license-management.com end-user SDK.

This library provides ready-to-use WPF views and view models for license registration, validation display, and unregistration 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

  • Pre-built Views - Ready-to-use WPF windows for common license operations
  • MVVM Architecture - Clean separation with ViewModels and Commands
  • Value Converters - License status to UI element converters
  • Validation Rules - Input validation for receipt codes
  • Customizable - Use as-is or extend with your own styles

Installation

dotnet add package Hymma.Lm.EndUser.Wpf

Or via NuGet Package Manager:

Install-Package Hymma.Lm.EndUser.Wpf

Components

Views

View Description
MainWindow Main license management window
RegisterLicenseView Product key/receipt code entry
UnregisterView Computer unregistration confirmation
ErrorView Error display with details

ViewModels

ViewModel Description
LicenseViewModel License status and details
ProductViewModel Product information display
RegisterLicenseViewModel Registration workflow logic
UnregisterViewModel Unregistration workflow logic
ErrorViewModel Error handling and display
BaseViewModel Base class with INotifyPropertyChanged

Converters

Converter Description
LicenseStatusConverter Converts LicenseStatusTitles to display strings
BooleanToVisibilityConverter Standard bool to Visibility converter
UtcToLocalTimeConverter Converts UTC DateTime to local time

Commands

Command Description
RelayCommand ICommand implementation for MVVM

Validation Rules

Rule Description
ReceiptCodeRule Validates receipt code format

Quick Start

Show Registration Dialog

using LicenseManagement.EndUser.Wpf.Views;
using LicenseManagement.EndUser.Wpf.ViewModels;

var viewModel = new RegisterLicenseViewModel();
var view = new RegisterLicenseView
{
    DataContext = viewModel
};

if (view.ShowDialog() == true)
{
    string receiptCode = viewModel.ReceiptCode;
    // Process the receipt code
}

Display License Status

using LicenseManagement.EndUser.Wpf.ViewModels;

var licenseVm = new LicenseViewModel
{
    Status = LicenseStatusTitles.Valid,
    ExpirationDate = DateTime.UtcNow.AddMonths(6),
    ProductName = "My Product"
};

Use Converters in XAML

<Window xmlns:converters="clr-namespace:LicenseManagement.EndUser.Wpf.Converters.ValueConverters;assembly=LicenseManagement.EndUser.Wpf">
    <Window.Resources>
        <converters:LicenseStatusConverter x:Key="StatusConverter"/>
        <converters:UtcToLocalTimeConverter x:Key="TimeConverter"/>
    </Window.Resources>

    <TextBlock Text="{Binding Status, Converter={StaticResource StatusConverter}}"/>
    <TextBlock Text="{Binding ExpirationDate, Converter={StaticResource TimeConverter}}"/>
</Window>

Include Resource Dictionary

<Application.Resources>
    <ResourceDictionary>
        <ResourceDictionary.MergedDictionaries>
            <ResourceDictionary Source="pack://application:,,,/LicenseManagement.EndUser.Wpf;component/AppResources.xaml"/>
        </ResourceDictionary.MergedDictionaries>
    </ResourceDictionary>
</Application.Resources>

Sample Application

We provide a complete sample WPF application demonstrating real-world usage patterns:

WPF Sample App

The WPF Sample Application demonstrates:

  • License validation at application startup
  • Handling different license states (Valid, Trial, Expired)
  • Feature gating based on license status
  • Integration with built-in license management UI
  • Centralized license service pattern
// Example: Validate license at startup
private void MainWindow_Loaded(object sender, RoutedEventArgs e)
{
    var context = _licenseService.ValidateLicense(
        onLicFileNotFound: DownloadLicenseFile,
        onTrialEnded: HandleTrialEnded
    );
    UpdateFeatureAccess(context.LicenseModel.Status);
}

See the sample README for complete setup instructions.

Requirements

  • .NET Framework 4.8.1
  • WPF (Windows Presentation Foundation)
  • Hymma.Lm.EndUser (dependency)

Changelog

See CHANGELOG.md for version history and release notes.

License

MIT - See LICENSE for details.

Documentation

Product Compatible and additional computed target framework versions.
.NET Framework net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

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.3.5 466 12/15/2025 1.3.5 is deprecated because it is no longer maintained.
1.3.3 227 12/14/2025
1.3.0 220 12/14/2025
1.2.3 220 12/14/2025
1.2.2 181 12/12/2025
1.0.2 500 12/11/2025
1.0.1 474 12/11/2025
1.0.0 481 12/11/2025

Bundle all dependencies in package for single-folder deployment compatibility.