Metalama.Patterns.Wpf 2025.1.13

Prefix Reserved
dotnet add package Metalama.Patterns.Wpf --version 2025.1.13
                    
NuGet\Install-Package Metalama.Patterns.Wpf -Version 2025.1.13
                    
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="2025.1.13" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Metalama.Patterns.Wpf" Version="2025.1.13" />
                    
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 2025.1.13
                    
#r "nuget: Metalama.Patterns.Wpf, 2025.1.13"
                    
#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@2025.1.13
                    
#: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=2025.1.13
                    
Install as a Cake Addin
#tool nuget:?package=Metalama.Patterns.Wpf&version=2025.1.13
                    
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 net6.0-windows7.0 is compatible.  net7.0-windows was computed.  net8.0-windows was computed.  net9.0-windows was computed.  net10.0-windows was computed. 
.NET Framework net471 is compatible.  net472 was computed.  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
2025.1.13 64 9/5/2025
2025.1.12 233 8/7/2025
2025.1.11 499 7/23/2025
2025.1.10 173 7/3/2025
2025.1.9 191 5/29/2025
2025.1.8 165 5/26/2025
2025.1.7 171 5/22/2025
2025.1.6 247 5/15/2025
2025.1.5 154 5/2/2025
2025.1.4-rc 213 4/15/2025
2025.1.3-rc 193 4/9/2025
2025.1.2-preview 179 4/1/2025
2025.1.1-preview 156 3/18/2025
2025.0.12 171 5/22/2025
2025.0.11 150 5/2/2025
2025.0.10 218 3/31/2025
2025.0.9 242 3/7/2025
2025.0.8 176 1/6/2025
2025.0.7-rc 115 12/6/2024
2025.0.6-rc 116 11/15/2024
2025.0.5-preview 128 11/8/2024
2025.0.4-preview 102 10/31/2024
2025.0.3-preview 100 10/25/2024
2025.0.2-preview 120 10/24/2024
2025.0.1-preview 98 10/14/2024
2024.2.32 240 3/7/2025
2024.2.31 151 12/6/2024
2024.2.30 132 11/15/2024
2024.2.29 172 10/31/2024
2024.2.28 127 10/25/2024
2024.2.27 113 10/24/2024
2024.2.26 177 10/14/2024
2024.2.25 140 10/2/2024
2024.2.24 179 9/10/2024
2024.2.23 148 8/30/2024
2024.2.22 133 8/29/2024
2024.2.21 141 8/28/2024
2024.2.20 177 8/15/2024
2024.2.19 212 8/1/2024
2024.2.18 124 7/29/2024
2024.2.17-rc 113 7/22/2024
2024.2.16-rc 96 7/18/2024
2024.2.15-rc 93 7/12/2024