Metalama.Patterns.Wpf 2026.1.18

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

Metalama Logo

About

The Metalama.Patterns.Wpf contains aspects that implement WPF dependency properties and commands.

Key Features

  • Generates WPF dependency properties from C# automatic properties:
  • Integrates with Metalama.Patterns.Contracts.
  • Supports custom property-changing and property-changed methods.
  • Turns property initializer values into default values.
  • Generates WPF commands from C# methods :
    • Supports a CanExecute method or property.
    • Integrates with Metalama.Patterns.Observability to support INotifyPropertyChanged.
  • Supports custom naming conventions.

Main Types

The primary types in this package are:

  • DependencyPropertyAttribute is an aspect that generates a WPF dependency property from a plain automatic property.
  • CommandAttribute is an aspect that exposes generates a WPF command property from a plain C# method.
  • DependencyPropertyExtensions.ConfigureDependencyProperty is a fabric extension method that configures the DependencyPropertyAttribute aspect.
  • CommandExtensions.ConfigureCommand is a fabric extension method that configures the CommandAttribute aspect.

Additional Documentation

  • Metalama.Patterns.Contracts provides contract attributes such as [NotNull] or [Url]. They integrate with the DependencyPropertyAttribute aspect.
  • Metalama.Patterns.Observability can implement INotifyPropertyChanged for the CanExecute property supported by the CommandAttribute aspect.
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 net472 is compatible.  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
2026.1.18 89 6/10/2026
2026.1.17 101 6/5/2026
2026.1.16 105 6/3/2026
2026.1.15-rc 92 5/15/2026
2026.1.14-rc 82 5/13/2026
2026.1.13-preview 102 5/13/2026
2026.1.12-preview 94 5/12/2026
2026.1.11-preview 96 5/6/2026
2026.1.10-preview 107 4/29/2026
2026.1.9-preview 104 4/17/2026
2026.1.8-preview 105 4/13/2026
2026.1.7-preview 114 3/31/2026
2026.1.6-preview 207 3/28/2026
2026.1.5-preview 103 3/26/2026
2026.1.4-preview 103 3/22/2026
2026.0.23 126 5/15/2026
2026.0.22 133 4/29/2026
2026.0.21 129 4/17/2026
2026.0.20 207 3/25/2026
2026.0.19 113 3/24/2026
Loading failed