Metalama.Patterns.Xaml 2024.2.9-preview

Prefix Reserved
This is a prerelease version of Metalama.Patterns.Xaml.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Metalama.Patterns.Xaml --version 2024.2.9-preview                
NuGet\Install-Package Metalama.Patterns.Xaml -Version 2024.2.9-preview                
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.Xaml" Version="2024.2.9-preview" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Metalama.Patterns.Xaml --version 2024.2.9-preview                
#r "nuget: Metalama.Patterns.Xaml, 2024.2.9-preview"                
#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.
// Install Metalama.Patterns.Xaml as a Cake Addin
#addin nuget:?package=Metalama.Patterns.Xaml&version=2024.2.9-preview&prerelease

// Install Metalama.Patterns.Xaml as a Cake Tool
#tool nuget:?package=Metalama.Patterns.Xaml&version=2024.2.9-preview&prerelease                

Metalama Logo

About

The Metalama.Patterns.Xaml contains aspects that implement XAML dependency properties and commands.

Key Features

  • Generates XAML 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 XAML 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 XAML dependency property from a plain automatic property.
  • CommandAttribute is an aspect that exposes generates a XAML 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

  • Conceptual documentation: TODO.
  • API documentation: TODO.
  • 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. 
.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
2024.1.28-preview 37 9/9/2024