![]() |
VOOZH | about |
dotnet add package MattEqualsCoder.DynamicForms.WPF --version 1.2.0
NuGet\Install-Package MattEqualsCoder.DynamicForms.WPF -Version 1.2.0
<PackageReference Include="MattEqualsCoder.DynamicForms.WPF" Version="1.2.0" />
<PackageVersion Include="MattEqualsCoder.DynamicForms.WPF" Version="1.2.0" />Directory.Packages.props
<PackageReference Include="MattEqualsCoder.DynamicForms.WPF" />Project file
paket add MattEqualsCoder.DynamicForms.WPF --version 1.2.0
#r "nuget: MattEqualsCoder.DynamicForms.WPF, 1.2.0"
#:package MattEqualsCoder.DynamicForms.WPF@1.2.0
#addin nuget:?package=MattEqualsCoder.DynamicForms.WPF&version=1.2.0Install as a Cake Addin
#tool nuget:?package=MattEqualsCoder.DynamicForms.WPF&version=1.2.0Install as a Cake Tool
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" />
You can view additional documentation about using it here.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 net8.0-windows7.0 is compatible. net9.0-windows net9.0-windows was computed. net9.0-windows7.0 net9.0-windows7.0 is compatible. net10.0-windows net10.0-windows was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.2.0 | 339 | 3/6/2025 |
| 1.1.2 | 161 | 1/5/2025 |
| 1.1.1 | 165 | 1/5/2025 |
| 1.1.0 | 169 | 12/26/2024 |
| 1.0.2 | 166 | 1/5/2025 |
| 1.0.1 | 180 | 7/15/2024 |
| 1.0.0 | 177 | 7/15/2024 |
| 0.0.3-rc.1 | 444 | 4/21/2024 |
| 0.0.2 | 227 | 4/8/2024 |
| 0.0.1-rc.1 | 122 | 4/6/2024 |