EllipticBit.Coalescence.Windows 1.5.5

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

EllipticBit.Coalescence.Windows

WPF and WinForms specific utilities for the Coalescence code generation system.

This package contains client UI helpers used by Coalescence-generated desktop applications, including change-tracking model objects that implement INotifyPropertyChanged, identity-based instance caching, and a fluent builder for composing stable hash keys from arbitrary values using xxHash64.

Features

  • TrackingObject / TrackingObjectBase - base classes implementing INotifyPropertyChanged with built-in change tracking (HasChanges) and JSON (de)serialization hooks.
  • Identity caching of tracking objects via weak references so a single instance is shared for a given tracking key.
  • HashKeyBuilder and the AddKey(...) extension methods - build a ulong xxHash64 key from numbers, strings, GUIDs, dates, byte arrays, and collections of those types.

Requirements

  • Targets .NET Framework 4.8 and .NET 8.0 (Windows).
  • Uses WPF (UseWPF), so it is intended for Windows desktop applications.

Installation

Install from NuGet:

dotnet add package EllipticBit.Coalescence.Windows

Or add a PackageReference to your project file (replace the version with the latest published version):

<PackageReference Include="EllipticBit.Coalescence.Windows" Version="x.y.z" />

Getting Started

Build a hash key

HashKeyBuilder lets you compose a deterministic 64-bit key from any combination of values. The AddKey extension methods are fluent, so calls can be chained, and HashKey returns the computed ulong.

using EllipticBit.Coalescence.Windows;

ulong key = new HashKeyBuilder()
    .AddKey(customerId)            // int, long, Guid, string, DateTime, ...
    .AddKey(name)
    .AddKey(new[] { 1, 2, 3 })     // collections are supported too
    .HashKey;

Create a change-tracking model

Derive your view models from TrackingObject<T> to get INotifyPropertyChanged and change tracking for free. HasChanges reflects whether any tracked property has been modified.

using EllipticBit.Coalescence.Windows;

public sealed class Customer : TrackingObject<Customer>
{
    private string _name;

    public string Name
    {
        get => _name;
        set => Set(ref _name, value);
    }
}

var customer = new Customer();
customer.Name = "Ada Lovelace";

// Bind directly in WPF; HasChanges becomes true after the assignment above.
bool dirty = customer.HasChanges;

The exact change-notification helper methods are defined on the TrackingObject base type; consult IntelliSense for the members available on your target framework.

Package Description
EllipticBit.Coalescence.Shared Shared abstractions.
EllipticBit.Coalescence.Request HTTP client transport.
EllipticBit.Coalescence.AspNetCore ASP.NET Core server-side support.
EllipticBit.Coalescence.Windows WPF/WinForms utilities (this package).

License

Licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions are welcome! To contribute:

  1. Fork the repository and create a feature branch.
  2. Make your changes, following the existing code style and conventions.
  3. Add or update tests where appropriate and ensure the solution builds.
  4. Open a merge/pull request with a clear description of the change and its motivation.

AI / LLM-assisted contributions

If any part of your contribution was generated with the assistance of a Large Language Model (LLM) or other generative AI tool, you must include the exact prompt(s) used to generate the contribution in the PROMPTS.txt file at the root of the repository. Append each prompt along with a short note describing what it produced. Pull requests containing LLM-generated content without the corresponding prompts will not be accepted.

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 net48 is compatible.  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
1.5.5 115 6/23/2026
1.5.4 110 5/9/2026
1.5.3 245 10/28/2025
1.5.2 280 8/27/2025
1.5.1 238 3/21/2025
1.4.3 213 2/13/2025
1.4.2 198 2/2/2025