VOOZH about

URL: https://www.nuget.org/packages/MattEqualsCoder.DynamicForms.Core/

⇱ NuGet Gallery | MattEqualsCoder.DynamicForms.Core 1.5.0




MattEqualsCoder.DynamicForms.Core 1.5.0

dotnet add package MattEqualsCoder.DynamicForms.Core --version 1.5.0
 
 
NuGet\Install-Package MattEqualsCoder.DynamicForms.Core -Version 1.5.0
 
 
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="MattEqualsCoder.DynamicForms.Core" Version="1.5.0" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MattEqualsCoder.DynamicForms.Core" Version="1.5.0" />
 
Directory.Packages.props
<PackageReference Include="MattEqualsCoder.DynamicForms.Core" />
 
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 MattEqualsCoder.DynamicForms.Core --version 1.5.0
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MattEqualsCoder.DynamicForms.Core, 1.5.0"
 
 
#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 MattEqualsCoder.DynamicForms.Core@1.5.0
 
 
#: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=MattEqualsCoder.DynamicForms.Core&version=1.5.0
 
Install as a Cake Addin
#tool nuget:?package=MattEqualsCoder.DynamicForms.Core&version=1.5.0
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Dynamic Forms

Dynamic UI builder for WPF and Avalonia. By creating a ViewModel with attributes attached to properties and events and passing that ViewModel into the DynamicFormControl, you can have the control build a form with various different controls to accommodate a wide variety of data types.

You can create the above via the below code:

ViewModel

public class BasicViewModel
{
 [DynamicFormFieldText]
 public string BasicExampleText => "DynamicForms allows you to use property and event attributes to build a form dynamically for both WPF and Avalonia.";
 
 [DynamicFormFieldTextBox("Basic Text Box")]
 public string TextBoxOne { get; set; } = "";

 [DynamicFormFieldComboBox("Basic Combo Box", comboBoxOptionsProperty: nameof(ComboBoxOptions))]
 public string ComboBoxOne { get; set; } = "Test 3";

 [DynamicFormFieldButton("View YAML")] 
 public event EventHandler? ButtonPress;

 public string[] ComboBoxOptions => ["Test 1", "Test 2", "Test 3"];
}

Window C#

public partial class MainWindow : Window
{
 public MainWindow()
 {
 InitializeComponent();
 
 var model = new BasicViewModel();

 model.ButtonPress += (sender, args) =>
 {
 Console.WriteLine("Button pressed");
 };

 DataContext = model;
 }
}

Window XAML

<control:DynamicFormControl Data="{Binding}" Margin="5" />

Usage

  1. Create multiple projects
    • Shared library for view model classes
    • WPF application
    • Avalonia application
  2. Install nuget packages
    • Shared library: MattEqualsCoder.DynamicForms.Core
    • WPF application: MattEqualsCoder.DynamicForms.WPF
    • Avalonia application: MattEqualsCoder.DynamicForms.Avalonia
  3. Add controls to WPF and Avalonia windows

Documentation

You can view additional documentation about using it here.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 is compatible.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 is compatible.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages (2)

Showing the top 2 NuGet packages that depend on MattEqualsCoder.DynamicForms.Core:

Package Downloads
MattEqualsCoder.DynamicForms.Avalonia

Library to dynamically generate forms for user input based on attributes.

MattEqualsCoder.DynamicForms.WPF

Library to dynamically generate forms for user input based on attributes.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.5.0 222 4/9/2026
1.3.0 326 1/15/2026
1.2.0 666 3/6/2025
1.1.2 184 1/5/2025
1.1.1 168 1/5/2025
1.1.0 203 12/26/2024
1.0.2 266 1/5/2025
1.0.1 581 7/15/2024
1.0.0 196 7/15/2024
0.0.3-rc.1 497 4/21/2024
0.0.2 231 4/8/2024
0.0.1-rc.1 121 4/6/2024