Metalama.Patterns.Wpf
2026.1.18
Prefix Reserved
.NET 8.0
This package targets .NET 8.0. The package is compatible with this framework or higher.
.NET Framework 4.7.2
This package targets .NET Framework 4.7.2. The package is compatible with this framework or higher.
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" />
<PackageReference Include="Metalama.Patterns.Wpf" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
#tool nuget:?package=Metalama.Patterns.Wpf&version=2026.1.18
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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
CanExecutemethod or property. - Integrates with
Metalama.Patterns.Observabilityto supportINotifyPropertyChanged.
- Supports a
- Supports custom naming conventions.
Main Types
The primary types in this package are:
DependencyPropertyAttributeis an aspect that generates a WPF dependency property from a plain automatic property.CommandAttributeis an aspect that exposes generates a WPF command property from a plain C# method.DependencyPropertyExtensions.ConfigureDependencyPropertyis a fabric extension method that configures theDependencyPropertyAttributeaspect.CommandExtensions.ConfigureCommandis a fabric extension method that configures theCommandAttributeaspect.
Additional Documentation
- Conceptual documentation:
- API documentation
Related Packages
Metalama.Patterns.Contractsprovides contract attributes such as[NotNull]or[Url]. They integrate with theDependencyPropertyAttributeaspect.Metalama.Patterns.Observabilitycan implementINotifyPropertyChangedfor theCanExecuteproperty supported by theCommandAttributeaspect.
| Product | Versions 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.
-
.NETFramework 4.7.2
- Metalama.Framework (>= 2026.1.18)
- Metalama.Patterns.Contracts (>= 2026.1.18)
-
net8.0-windows7.0
- Metalama.Framework (>= 2026.1.18)
- Metalama.Patterns.Contracts (>= 2026.1.18)
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