![]() |
VOOZH | about |
dotnet add package MattEqualsCoder.DynamicForms.Avalonia --version 1.5.0
NuGet\Install-Package MattEqualsCoder.DynamicForms.Avalonia -Version 1.5.0
<PackageReference Include="MattEqualsCoder.DynamicForms.Avalonia" Version="1.5.0" />
<PackageVersion Include="MattEqualsCoder.DynamicForms.Avalonia" Version="1.5.0" />Directory.Packages.props
<PackageReference Include="MattEqualsCoder.DynamicForms.Avalonia" />Project file
paket add MattEqualsCoder.DynamicForms.Avalonia --version 1.5.0
#r "nuget: MattEqualsCoder.DynamicForms.Avalonia, 1.5.0"
#:package MattEqualsCoder.DynamicForms.Avalonia@1.5.0
#addin nuget:?package=MattEqualsCoder.DynamicForms.Avalonia&version=1.5.0Install as a Cake Addin
#tool nuget:?package=MattEqualsCoder.DynamicForms.Avalonia&version=1.5.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 | 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.5.0 | 220 | 4/9/2026 |
| 1.3.0 | 304 | 1/15/2026 |
| 1.2.0 | 599 | 3/6/2025 |
| 1.1.2 | 156 | 1/5/2025 |
| 1.1.1 | 162 | 12/26/2024 |
| 1.1.0 | 158 | 12/26/2024 |
| 1.0.2 | 238 | 1/5/2025 |
| 1.0.1 | 549 | 7/15/2024 |
| 1.0.0 | 160 | 7/15/2024 |
| 0.0.3-rc.5 | 250 | 6/4/2024 |
| 0.0.3-rc.4 | 140 | 5/21/2024 |
| 0.0.3-rc.3 | 133 | 5/12/2024 |
| 0.0.3-rc.2 | 153 | 4/29/2024 |
| 0.0.3-rc.1 | 164 | 4/21/2024 |
| 0.0.2 | 197 | 4/8/2024 |
| 0.0.1-rc.1 | 134 | 4/6/2024 |