![]() |
VOOZH | about |
dotnet add package MattEqualsCoder.DynamicForms.Core --version 1.5.0
NuGet\Install-Package MattEqualsCoder.DynamicForms.Core -Version 1.5.0
<PackageReference Include="MattEqualsCoder.DynamicForms.Core" Version="1.5.0" />
<PackageVersion Include="MattEqualsCoder.DynamicForms.Core" Version="1.5.0" />Directory.Packages.props
<PackageReference Include="MattEqualsCoder.DynamicForms.Core" />Project file
paket add MattEqualsCoder.DynamicForms.Core --version 1.5.0
#r "nuget: MattEqualsCoder.DynamicForms.Core, 1.5.0"
#:package MattEqualsCoder.DynamicForms.Core@1.5.0
#addin nuget:?package=MattEqualsCoder.DynamicForms.Core&version=1.5.0Install as a Cake Addin
#tool nuget:?package=MattEqualsCoder.DynamicForms.Core&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 | 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. |
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. |
This package is not used by any popular GitHub repositories.